(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Sr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Af={exports:{}},ts={},jf={exports:{}},F={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ko=Symbol.for("react.element"),dv=Symbol.for("react.portal"),fv=Symbol.for("react.fragment"),pv=Symbol.for("react.strict_mode"),hv=Symbol.for("react.profiler"),mv=Symbol.for("react.provider"),gv=Symbol.for("react.context"),vv=Symbol.for("react.forward_ref"),yv=Symbol.for("react.suspense"),xv=Symbol.for("react.memo"),wv=Symbol.for("react.lazy"),ec=Symbol.iterator;function Sv(e){return e===null||typeof e!="object"?null:(e=ec&&e[ec]||e["@@iterator"],typeof e=="function"?e:null)}var Rf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lf=Object.assign,Mf={};function Tr(e,t,n){this.props=e,this.context=t,this.refs=Mf,this.updater=n||Rf}Tr.prototype.isReactComponent={};Tr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Tr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Of(){}Of.prototype=Tr.prototype;function Ol(e,t,n){this.props=e,this.context=t,this.refs=Mf,this.updater=n||Rf}var Dl=Ol.prototype=new Of;Dl.constructor=Ol;Lf(Dl,Tr.prototype);Dl.isPureReactComponent=!0;var tc=Array.isArray,Df=Object.prototype.hasOwnProperty,Vl={current:null},Vf={key:!0,ref:!0,__self:!0,__source:!0};function If(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Df.call(t,r)&&!Vf.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,U=N[O];if(0>>1;Oo(Fn,I))Ueo(fn,Fn)?(N[O]=fn,N[Ue]=I,O=Ue):(N[O]=Fn,N[Be]=I,O=Be);else if(Ueo(fn,I))N[O]=fn,N[Ue]=I,O=Ue;else break e}}return R}function o(N,R){var I=N.sortIndex-R.sortIndex;return I!==0?I:N.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,h=!1,x=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(N){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=N)r(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(u)}}function w(N){if(y=!1,m(N),!x)if(n(l)!==null)x=!0,B(C);else{var R=n(u);R!==null&&de(w,R.startTime-N)}}function C(N,R){x=!1,y&&(y=!1,g(E),E=-1),h=!0;var I=f;try{for(m(R),d=n(l);d!==null&&(!(d.expirationTime>R)||N&&!$());){var O=d.callback;if(typeof O=="function"){d.callback=null,f=d.priorityLevel;var U=O(d.expirationTime<=R);R=e.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&r(l),m(R)}else r(l);d=n(l)}if(d!==null)var G=!0;else{var Be=n(u);Be!==null&&de(w,Be.startTime-R),G=!1}return G}finally{d=null,f=I,h=!1}}var k=!1,P=null,E=-1,L=5,M=-1;function $(){return!(e.unstable_now()-MN||125O?(N.sortIndex=I,t(u,N),n(l)===null&&N===n(u)&&(y?(g(E),E=-1):y=!0,de(w,I-O))):(N.sortIndex=U,t(l,N),x||h||(x=!0,B(C))),N},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(N){var R=f;return function(){var I=f;f=R;try{return N.apply(this,arguments)}finally{f=I}}}})(Uf);Bf.exports=Uf;var Lv=Bf.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Mv=T,Ye=Lv;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),va=Object.prototype.hasOwnProperty,Ov=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rc={},oc={};function Dv(e){return va.call(oc,e)?!0:va.call(rc,e)?!1:Ov.test(e)?oc[e]=!0:(rc[e]=!0,!1)}function Vv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Iv(e,t,n,r){if(t===null||typeof t>"u"||Vv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Me(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Te[e]=new Me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Te[t]=new Me(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Te[e]=new Me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Te[e]=new Me(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Te[e]=new Me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Te[e]=new Me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Te[e]=new Me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Te[e]=new Me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Te[e]=new Me(e,5,!1,e.toLowerCase(),null,!1,!1)});var _l=/[\-:]([a-z])/g;function Fl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_l,Fl);Te[t]=new Me(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_l,Fl);Te[t]=new Me(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_l,Fl);Te[t]=new Me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Te[e]=new Me(e,1,!1,e.toLowerCase(),null,!1,!1)});Te.xlinkHref=new Me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Te[e]=new Me(e,1,!1,e.toLowerCase(),null,!0,!0)});function zl(e,t,n,r){var o=Te.hasOwnProperty(t)?Te[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Rs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fr(e):""}function _v(e){switch(e.tag){case 5:return Fr(e.type);case 16:return Fr("Lazy");case 13:return Fr("Suspense");case 19:return Fr("SuspenseList");case 0:case 2:case 15:return e=Ls(e.type,!1),e;case 11:return e=Ls(e.type.render,!1),e;case 1:return e=Ls(e.type,!0),e;default:return""}}function Sa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Hn:return"Fragment";case Un:return"Portal";case ya:return"Profiler";case Bl:return"StrictMode";case xa:return"Suspense";case wa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wf:return(e.displayName||"Context")+".Consumer";case $f:return(e._context.displayName||"Context")+".Provider";case Ul:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hl:return t=e.displayName||null,t!==null?t:Sa(e.type)||"Memo";case zt:t=e._payload,e=e._init;try{return Sa(e(t))}catch{}}return null}function Fv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Sa(t);case 8:return t===Bl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zv(e){var t=Yf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _o(e){e._valueTracker||(e._valueTracker=zv(e))}function Kf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Si(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ta(e,t){var n=t.checked;return ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function sc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Qf(e,t){t=t.checked,t!=null&&zl(e,"checked",t,!1)}function Ca(e,t){Qf(e,t);var n=rn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Pa(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pa(e,t.type,rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ac(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Pa(e,t,n){(t!=="number"||Si(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zr=Array.isArray;function or(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Fo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function oo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $r={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bv=["Webkit","ms","Moz","O"];Object.keys($r).forEach(function(e){Bv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$r[t]=$r[e]})});function Jf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$r.hasOwnProperty(e)&&$r[e]?(""+t).trim():t+"px"}function ep(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Jf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Uv=ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ba(e,t){if(t){if(Uv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function Na(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Aa=null;function $l(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ja=null,ir=null,sr=null;function cc(e){if(e=Ao(e)){if(typeof ja!="function")throw Error(b(280));var t=e.stateNode;t&&(t=ss(t),ja(e.stateNode,e.type,t))}}function tp(e){ir?sr?sr.push(e):sr=[e]:ir=e}function np(){if(ir){var e=ir,t=sr;if(sr=ir=null,cc(e),t)for(e=0;e>>=0,e===0?32:31-(Jv(e)/ey|0)|0}var zo=64,Bo=4194304;function Br(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ei(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Br(a):(i&=s,i!==0&&(r=Br(i)))}else s=n&~o,s!==0?r=Br(s):i!==0&&(r=Br(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function bo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dt(t),e[t]=n}function oy(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Gr),xc=String.fromCharCode(32),wc=!1;function Tp(e,t){switch(e){case"keyup":return Ly.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $n=!1;function Oy(e,t){switch(e){case"compositionend":return Cp(t);case"keypress":return t.which!==32?null:(wc=!0,xc);case"textInput":return e=t.data,e===xc&&wc?null:e;default:return null}}function Dy(e,t){if($n)return e==="compositionend"||!Zl&&Tp(e,t)?(e=wp(),ui=Ql=Wt=null,$n=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Pc(n)}}function bp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Np(){for(var e=window,t=Si();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Si(e.document)}return t}function Jl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function $y(e){var t=Np(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&bp(n.ownerDocument.documentElement,n)){if(r!==null&&Jl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Ec(n,i);var s=Ec(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Wn=null,Va=null,Kr=null,Ia=!1;function kc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ia||Wn==null||Wn!==Si(r)||(r=Wn,"selectionStart"in r&&Jl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Kr&&co(Kr,r)||(Kr=r,r=Ni(Va,"onSelect"),0Kn||(e.current=Ha[Kn],Ha[Kn]=null,Kn--)}function Y(e,t){Kn++,Ha[Kn]=e.current,e.current=t}var on={},be=un(on),Ie=un(!1),bn=on;function fr(e,t){var n=e.type.contextTypes;if(!n)return on;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function _e(e){return e=e.childContextTypes,e!=null}function ji(){q(Ie),q(be)}function Mc(e,t,n){if(be.current!==on)throw Error(b(168));Y(be,t),Y(Ie,n)}function Ip(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(b(108,Fv(e)||"Unknown",o));return ae({},n,r)}function Ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||on,bn=be.current,Y(be,e),Y(Ie,Ie.current),!0}function Oc(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=Ip(e,t,bn),r.__reactInternalMemoizedMergedChildContext=e,q(Ie),q(be),Y(be,e)):q(Ie),Y(Ie,n)}var Ct=null,as=!1,Gs=!1;function _p(e){Ct===null?Ct=[e]:Ct.push(e)}function n0(e){as=!0,_p(e)}function cn(){if(!Gs&&Ct!==null){Gs=!0;var e=0,t=W;try{var n=Ct;for(W=1;e>=s,o-=s,Pt=1<<32-dt(t)+o|n<E?(L=P,P=null):L=P.sibling;var M=f(g,P,m[E],w);if(M===null){P===null&&(P=L);break}e&&P&&M.alternate===null&&t(g,P),p=i(M,p,E),k===null?C=M:k.sibling=M,k=M,P=L}if(E===m.length)return n(g,P),ne&&mn(g,E),C;if(P===null){for(;EE?(L=P,P=null):L=P.sibling;var $=f(g,P,M.value,w);if($===null){P===null&&(P=L);break}e&&P&&$.alternate===null&&t(g,P),p=i($,p,E),k===null?C=$:k.sibling=$,k=$,P=L}if(M.done)return n(g,P),ne&&mn(g,E),C;if(P===null){for(;!M.done;E++,M=m.next())M=d(g,M.value,w),M!==null&&(p=i(M,p,E),k===null?C=M:k.sibling=M,k=M);return ne&&mn(g,E),C}for(P=r(g,P);!M.done;E++,M=m.next())M=h(P,g,E,M.value,w),M!==null&&(e&&M.alternate!==null&&P.delete(M.key===null?E:M.key),p=i(M,p,E),k===null?C=M:k.sibling=M,k=M);return e&&P.forEach(function(D){return t(g,D)}),ne&&mn(g,E),C}function S(g,p,m,w){if(typeof m=="object"&&m!==null&&m.type===Hn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Io:e:{for(var C=m.key,k=p;k!==null;){if(k.key===C){if(C=m.type,C===Hn){if(k.tag===7){n(g,k.sibling),p=o(k,m.props.children),p.return=g,g=p;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===zt&&Ic(C)===k.type){n(g,k.sibling),p=o(k,m.props),p.ref=jr(g,k,m),p.return=g,g=p;break e}n(g,k);break}else t(g,k);k=k.sibling}m.type===Hn?(p=En(m.props.children,g.mode,w,m.key),p.return=g,g=p):(w=vi(m.type,m.key,m.props,null,g.mode,w),w.ref=jr(g,p,m),w.return=g,g=w)}return s(g);case Un:e:{for(k=m.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(g,p.sibling),p=o(p,m.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=ea(m,g.mode,w),p.return=g,g=p}return s(g);case zt:return k=m._init,S(g,p,k(m._payload),w)}if(zr(m))return x(g,p,m,w);if(Er(m))return y(g,p,m,w);Ko(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(g,p.sibling),p=o(p,m),p.return=g,g=p):(n(g,p),p=Js(m,g.mode,w),p.return=g,g=p),s(g)):n(g,p)}return S}var hr=Up(!0),Hp=Up(!1),Oi=un(null),Di=null,qn=null,ru=null;function ou(){ru=qn=Di=null}function iu(e){var t=Oi.current;q(Oi),e._currentValue=t}function Ga(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function lr(e,t){Di=e,ru=qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ve=!0),e.firstContext=null)}function rt(e){var t=e._currentValue;if(ru!==e)if(e={context:e,memoizedValue:t,next:null},qn===null){if(Di===null)throw Error(b(308));qn=e,Di.dependencies={lanes:0,firstContext:e}}else qn=qn.next=e;return t}var wn=null;function su(e){wn===null?wn=[e]:wn.push(e)}function $p(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,su(t)):(n.next=o.next,o.next=n),t.interleaved=n,Lt(e,r)}function Lt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Bt=!1;function au(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function bt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Lt(e,n)}return o=r.interleaved,o===null?(t.next=t,su(r)):(t.next=o.next,o.next=t),r.interleaved=t,Lt(e,n)}function di(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gl(e,n)}}function _c(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vi(e,t,n,r){var o=e.updateQueue;Bt=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,h=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,y=a;switch(f=t,h=n,y.tag){case 1:if(x=y.payload,typeof x=="function"){d=x.call(h,d,f);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,f=typeof x=="function"?x.call(h,d,f):x,f==null)break e;d=ae({},d,f);break e;case 2:Bt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);jn|=s,e.lanes=s,e.memoizedState=d}}function Fc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ks.transition;Ks.transition={};try{e(!1),t()}finally{W=n,Ks.transition=r}}function lh(){return ot().memoizedState}function s0(e,t,n){var r=Jt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},uh(e))ch(t,n);else if(n=$p(e,t,n,r),n!==null){var o=Re();ft(n,e,r,o),dh(n,t,r)}}function a0(e,t,n){var r=Jt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(uh(e))ch(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,pt(a,s)){var l=t.interleaved;l===null?(o.next=o,su(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=$p(e,t,o,r),n!==null&&(o=Re(),ft(n,e,r,o),dh(n,t,r))}}function uh(e){var t=e.alternate;return e===se||t!==null&&t===se}function ch(e,t){Qr=_i=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gl(e,n)}}var Fi={readContext:rt,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useInsertionEffect:Ce,useLayoutEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useMutableSource:Ce,useSyncExternalStore:Ce,useId:Ce,unstable_isNewReconciler:!1},l0={readContext:rt,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:Bc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pi(4194308,4,rh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return pi(4,2,e,t)},useMemo:function(e,t){var n=mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=mt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=s0.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:zc,useDebugValue:mu,useDeferredValue:function(e){return mt().memoizedState=e},useTransition:function(){var e=zc(!1),t=e[0];return e=i0.bind(null,e[1]),mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,o=mt();if(ne){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),xe===null)throw Error(b(349));An&30||Qp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Bc(qp.bind(null,r,i,e),[e]),r.flags|=2048,xo(9,Xp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=mt(),t=xe.identifierPrefix;if(ne){var n=Et,r=Pt;n=(r&~(1<<32-dt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=vo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[gt]=t,e[ho]=r,Sh(e,t,!1,!1),t.stateNode=e;e:{switch(s=Na(n,r),n){case"dialog":Q("cancel",e),Q("close",e),o=r;break;case"iframe":case"object":case"embed":Q("load",e),o=r;break;case"video":case"audio":for(o=0;ovr&&(t.flags|=128,r=!0,Rr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ii(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Rr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ne)return Pe(t),null}else 2*pe()-i.renderingStartTime>vr&&n!==1073741824&&(t.flags|=128,r=!0,Rr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=oe.current,Y(oe,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return Su(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?He&1073741824&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function g0(e,t){switch(tu(t),t.tag){case 1:return _e(t.type)&&ji(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mr(),q(Ie),q(be),cu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uu(t),null;case 13:if(q(oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(oe),null;case 4:return mr(),null;case 10:return iu(t.type._context),null;case 22:case 23:return Su(),null;case 24:return null;default:return null}}var Xo=!1,ke=!1,v0=typeof WeakSet=="function"?WeakSet:Set,A=null;function Zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ue(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){ue(e,t,r)}}var Zc=!1;function y0(e,t){if(_a=ki,e=Np(),Jl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fa={focusedElem:e,selectionRange:n},ki=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,S=x.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:at(t.type,y),S);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(w){ue(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return x=Zc,Zc=!1,x}function Xr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&tl(t,n,i)}o=o.next}while(o!==r)}}function cs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function nl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ph(e){var t=e.alternate;t!==null&&(e.alternate=null,Ph(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gt],delete t[ho],delete t[Ua],delete t[e0],delete t[t0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Eh(e){return e.tag===5||e.tag===3||e.tag===4}function Jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function rl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ai));else if(r!==4&&(e=e.child,e!==null))for(rl(e,t,n),e=e.sibling;e!==null;)rl(e,t,n),e=e.sibling}function ol(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ol(e,t,n),e=e.sibling;e!==null;)ol(e,t,n),e=e.sibling}var we=null,lt=!1;function It(e,t,n){for(n=n.child;n!==null;)kh(e,t,n),n=n.sibling}function kh(e,t,n){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(ns,n)}catch{}switch(n.tag){case 5:ke||Zn(n,t);case 6:var r=we,o=lt;we=null,It(e,t,n),we=r,lt=o,we!==null&&(lt?(e=we,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):we.removeChild(n.stateNode));break;case 18:we!==null&&(lt?(e=we,n=n.stateNode,e.nodeType===8?Ws(e.parentNode,n):e.nodeType===1&&Ws(e,n),lo(e)):Ws(we,n.stateNode));break;case 4:r=we,o=lt,we=n.stateNode.containerInfo,lt=!0,It(e,t,n),we=r,lt=o;break;case 0:case 11:case 14:case 15:if(!ke&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&tl(n,t,s),o=o.next}while(o!==r)}It(e,t,n);break;case 1:if(!ke&&(Zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ue(n,t,a)}It(e,t,n);break;case 21:It(e,t,n);break;case 22:n.mode&1?(ke=(r=ke)||n.memoizedState!==null,It(e,t,n),ke=r):It(e,t,n);break;default:It(e,t,n)}}function ed(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new v0),t.forEach(function(r){var o=b0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function it(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*w0(r/1960))-r,10e?16:e,Gt===null)var r=!1;else{if(e=Gt,Gt=null,Ui=0,H&6)throw Error(b(331));var o=H;for(H|=4,A=e.current;A!==null;){var i=A,s=i.child;if(A.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lpe()-xu?Pn(e,0):yu|=n),Fe(e,t)}function Oh(e,t){t===0&&(e.mode&1?(t=Bo,Bo<<=1,!(Bo&130023424)&&(Bo=4194304)):t=1);var n=Re();e=Lt(e,t),e!==null&&(bo(e,t,n),Fe(e,n))}function k0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Oh(e,n)}function b0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(b(314))}r!==null&&r.delete(t),Oh(e,n)}var Dh;Dh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ie.current)Ve=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ve=!1,h0(e,t,n);Ve=!!(e.flags&131072)}else Ve=!1,ne&&t.flags&1048576&&Fp(t,Mi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hi(e,t),e=t.pendingProps;var o=fr(t,be.current);lr(t,n),o=fu(null,t,r,e,o,n);var i=pu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_e(r)?(i=!0,Ri(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,au(t),o.updater=us,t.stateNode=o,o._reactInternals=t,Ka(t,r,e,n),t=qa(null,t,r,!0,i,n)):(t.tag=0,ne&&i&&eu(t),je(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=A0(r),e=at(r,e),o){case 0:t=Xa(null,t,r,e,n);break e;case 1:t=Qc(null,t,r,e,n);break e;case 11:t=Yc(null,t,r,e,n);break e;case 14:t=Kc(null,t,r,at(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:at(r,o),Xa(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:at(r,o),Qc(e,t,r,o,n);case 3:e:{if(yh(t),e===null)throw Error(b(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Wp(e,t),Vi(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=gr(Error(b(423)),t),t=Xc(e,t,r,n,o);break e}else if(r!==o){o=gr(Error(b(424)),t),t=Xc(e,t,r,n,o);break e}else for(We=Xt(t.stateNode.containerInfo.firstChild),Ge=t,ne=!0,ut=null,n=Hp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pr(),r===o){t=Mt(e,t,n);break e}je(e,t,r,n)}t=t.child}return t;case 5:return Gp(t),e===null&&Wa(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,za(r,o)?s=null:i!==null&&za(r,i)&&(t.flags|=32),vh(e,t),je(e,t,s,n),t.child;case 6:return e===null&&Wa(t),null;case 13:return xh(e,t,n);case 4:return lu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hr(t,null,r,n):je(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:at(r,o),Yc(e,t,r,o,n);case 7:return je(e,t,t.pendingProps,n),t.child;case 8:return je(e,t,t.pendingProps.children,n),t.child;case 12:return je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Y(Oi,r._currentValue),r._currentValue=s,i!==null)if(pt(i.value,s)){if(i.children===o.children&&!Ie.current){t=Mt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=bt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ga(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(b(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ga(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}je(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,lr(t,n),o=rt(o),r=r(o),t.flags|=1,je(e,t,r,n),t.child;case 14:return r=t.type,o=at(r,t.pendingProps),o=at(r.type,o),Kc(e,t,r,o,n);case 15:return mh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:at(r,o),hi(e,t),t.tag=1,_e(r)?(e=!0,Ri(t)):e=!1,lr(t,n),fh(t,r,o),Ka(t,r,o,n),qa(null,t,r,!0,e,n);case 19:return wh(e,t,n);case 22:return gh(e,t,n)}throw Error(b(156,t.tag))};function Vh(e,t){return up(e,t)}function N0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tt(e,t,n,r){return new N0(e,t,n,r)}function Cu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function A0(e){if(typeof e=="function")return Cu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ul)return 11;if(e===Hl)return 14}return 2}function en(e,t){var n=e.alternate;return n===null?(n=tt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function vi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Cu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Hn:return En(n.children,o,i,t);case Bl:s=8,o|=8;break;case ya:return e=tt(12,n,t,o|2),e.elementType=ya,e.lanes=i,e;case xa:return e=tt(13,n,t,o),e.elementType=xa,e.lanes=i,e;case wa:return e=tt(19,n,t,o),e.elementType=wa,e.lanes=i,e;case Gf:return fs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $f:s=10;break e;case Wf:s=9;break e;case Ul:s=11;break e;case Hl:s=14;break e;case zt:s=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=tt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function En(e,t,n,r){return e=tt(7,e,r,t),e.lanes=n,e}function fs(e,t,n,r){return e=tt(22,e,r,t),e.elementType=Gf,e.lanes=n,e.stateNode={isHidden:!1},e}function Js(e,t,n){return e=tt(6,e,null,t),e.lanes=n,e}function ea(e,t,n){return t=tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function j0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Os(0),this.expirationTimes=Os(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Os(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Pu(e,t,n,r,o,i,s,a,l){return e=new j0(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=tt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},au(i),e}function R0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zh)}catch(e){console.error(e)}}zh(),zf.exports=Qe;var vs=zf.exports;const V0=Sr(vs);var ld=vs;ga.createRoot=ld.createRoot,ga.hydrateRoot=ld.hydrateRoot;var Bh={exports:{}},I0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_0=I0,F0=_0;function Uh(){}function Hh(){}Hh.resetWarningCache=Uh;var z0=function(){function e(r,o,i,s,a,l){if(l!==F0){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Hh,resetWarningCache:Uh};return n.PropTypes=n,n};Bh.exports=z0();var B0=Bh.exports;const ee=Sr(B0);function U0(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var $h=T,H0=U0($h);function ud(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var W0=!!(typeof window<"u"&&window.document&&window.document.createElement);function G0(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var s=[],a;function l(){a=e(s.map(function(c){return c.props})),u.canUseDOM?t(a):n&&(a=n(a))}var u=function(c){$0(d,c);function d(){return c.apply(this,arguments)||this}d.peek=function(){return a},d.rewind=function(){if(d.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var x=a;return a=void 0,s=[],x};var f=d.prototype;return f.UNSAFE_componentWillMount=function(){s.push(this),l()},f.componentDidUpdate=function(){l()},f.componentWillUnmount=function(){var x=s.indexOf(this);s.splice(x,1),l()},f.render=function(){return H0.createElement(i,this.props)},d}($h.PureComponent);return ud(u,"displayName","SideEffect("+r(i)+")"),ud(u,"canUseDOM",W0),u}}var Y0=G0;const K0=Sr(Y0);var Q0=typeof Element<"u",X0=typeof Map=="function",q0=typeof Set=="function",Z0=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function yi(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!yi(e[r],t[r]))return!1;return!0}var i;if(X0&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!yi(r.value[1],t.get(r.value[0])))return!1;return!0}if(q0&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Z0&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Q0&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!yi(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var J0=function(t,n){try{return yi(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const e1=Sr(J0);/* object-assign (c) Sindre Sorhus @license MIT */var cd=Object.getOwnPropertySymbols,t1=Object.prototype.hasOwnProperty,n1=Object.prototype.propertyIsEnumerable;function r1(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o1(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var i1=o1()?Object.assign:function(e,t){for(var n,r=r1(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},p1=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},ul=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},h1=function(t){var n=cr(t,_.TITLE),r=cr(t,So.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=cr(t,So.DEFAULT_TITLE);return n||o||void 0},m1=function(t){return cr(t,So.ON_CHANGE_CLIENT_STATE)||function(){}},ta=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return Oe({},r,o)},{})},g1=function(t,n){return n.filter(function(r){return typeof r[_.BASE]<"u"}).map(function(r){return r[_.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),s=0;s=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},v1=function(t){return{baseTag:g1([te.HREF,te.TARGET],t),bodyAttributes:ta(kn.BODY,t),defer:cr(t,So.DEFER),encode:cr(t,So.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:ta(kn.HTML,t),linkTags:Mr(_.LINK,[te.REL,te.HREF],t),metaTags:Mr(_.META,[te.NAME,te.CHARSET,te.HTTPEQUIV,te.PROPERTY,te.ITEM_PROP],t),noscriptTags:Mr(_.NOSCRIPT,[te.INNER_HTML],t),onChangeClientState:m1(t),scriptTags:Mr(_.SCRIPT,[te.SRC,te.INNER_HTML],t),styleTags:Mr(_.STYLE,[te.CSS_TEXT],t),title:h1(t),titleAttributes:ta(kn.TITLE,t)}},cl=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){cl(t)},0)}}(),fd=function(t){return clearTimeout(t)},y1=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||cl:global.requestAnimationFrame||cl,x1=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||fd:global.cancelAnimationFrame||fd,w1=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},Or=null,S1=function(t){Or&&x1(Or),t.defer?Or=y1(function(){pd(t,function(){Or=null})}):(pd(t),Or=null)},pd=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.onChangeClientState,c=t.scriptTags,d=t.styleTags,f=t.title,h=t.titleAttributes;dl(_.BODY,o),dl(_.HTML,i),T1(f,h);var x={baseTag:Bn(_.BASE,r),linkTags:Bn(_.LINK,s),metaTags:Bn(_.META,a),noscriptTags:Bn(_.NOSCRIPT,l),scriptTags:Bn(_.SCRIPT,c),styleTags:Bn(_.STYLE,d)},y={},S={};Object.keys(x).forEach(function(g){var p=x[g],m=p.newTags,w=p.oldTags;m.length&&(y[g]=m),w.length&&(S[g]=x[g].oldTags)}),n&&n(),u(t,y,S)},Wh=function(t){return Array.isArray(t)?t.join(""):t},T1=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=Wh(t)),dl(_.TITLE,n)},dl=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(ct),i=o?o.split(","):[],s=[].concat(i),a=Object.keys(n),l=0;l=0;f--)r.removeAttribute(s[f]);i.length===s.length?r.removeAttribute(ct):r.getAttribute(ct)!==a.join(",")&&r.setAttribute(ct,a.join(","))}},Bn=function(t,n){var r=document.head||document.querySelector(_.HEAD),o=r.querySelectorAll(t+"["+ct+"]"),i=Array.prototype.slice.call(o),s=[],a=void 0;return n&&n.length&&n.forEach(function(l){var u=document.createElement(t);for(var c in l)if(l.hasOwnProperty(c))if(c===te.INNER_HTML)u.innerHTML=l.innerHTML;else if(c===te.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=l.cssText:u.appendChild(document.createTextNode(l.cssText));else{var d=typeof l[c]>"u"?"":l[c];u.setAttribute(c,d)}u.setAttribute(ct,"true"),i.some(function(f,h){return a=h,u.isEqualNode(f)})?i.splice(a,1):s.push(u)}),i.forEach(function(l){return l.parentNode.removeChild(l)}),s.forEach(function(l){return r.appendChild(l)}),{oldTags:i,newTags:s}},Gh=function(t){return Object.keys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},C1=function(t,n,r,o){var i=Gh(r),s=Wh(n);return i?"<"+t+" "+ct+'="true" '+i+">"+ul(s,o)+"":"<"+t+" "+ct+'="true">'+ul(s,o)+""},P1=function(t,n,r){return n.reduce(function(o,i){var s=Object.keys(i).filter(function(u){return!(u===te.INNER_HTML||u===te.CSS_TEXT)}).reduce(function(u,c){var d=typeof i[c]>"u"?c:c+'="'+ul(i[c],r)+'"';return u?u+" "+d:d},""),a=i.innerHTML||i.cssText||"",l=l1.indexOf(t)===-1;return o+"<"+t+" "+ct+'="true" '+s+(l?"/>":">"+a+"")},"")},Yh=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Wi[o]||o]=t[o],r},n)},E1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[a1[o]||o]=t[o],r},n)},k1=function(t,n,r){var o,i=(o={key:n},o[ct]=!0,o),s=Yh(r,i);return[fe.createElement(_.TITLE,s,n)]},b1=function(t,n){return n.map(function(r,o){var i,s=(i={key:o},i[ct]=!0,i);return Object.keys(r).forEach(function(a){var l=Wi[a]||a;if(l===te.INNER_HTML||l===te.CSS_TEXT){var u=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:u}}else s[l]=r[a]}),fe.createElement(t,s)})},St=function(t,n,r){switch(t){case _.TITLE:return{toComponent:function(){return k1(t,n.title,n.titleAttributes)},toString:function(){return C1(t,n.title,n.titleAttributes,r)}};case kn.BODY:case kn.HTML:return{toComponent:function(){return Yh(n)},toString:function(){return Gh(n)}};default:return{toComponent:function(){return b1(t,n)},toString:function(){return P1(t,n,r)}}}},Kh=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.scriptTags,c=t.styleTags,d=t.title,f=d===void 0?"":d,h=t.titleAttributes;return{base:St(_.BASE,n,o),bodyAttributes:St(kn.BODY,r,o),htmlAttributes:St(kn.HTML,i,o),link:St(_.LINK,s,o),meta:St(_.META,a,o),noscript:St(_.NOSCRIPT,l,o),script:St(_.SCRIPT,u,o),style:St(_.STYLE,c,o),title:St(_.TITLE,{title:f,titleAttributes:h},o)}},N1=function(t){var n,r;return r=n=function(o){f1(i,o);function i(){return c1(this,i),p1(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(a){return!e1(this.props,a)},i.prototype.mapNestedChildrenToProps=function(a,l){if(!l)return null;switch(a.type){case _.SCRIPT:case _.NOSCRIPT:return{innerHTML:l};case _.STYLE:return{cssText:l}}throw new Error("<"+a.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(a){var l,u=a.child,c=a.arrayTypeChildren,d=a.newChildProps,f=a.nestedChildren;return Oe({},c,(l={},l[u.type]=[].concat(c[u.type]||[],[Oe({},d,this.mapNestedChildrenToProps(u,f))]),l))},i.prototype.mapObjectTypeChildren=function(a){var l,u,c=a.child,d=a.newProps,f=a.newChildProps,h=a.nestedChildren;switch(c.type){case _.TITLE:return Oe({},d,(l={},l[c.type]=h,l.titleAttributes=Oe({},f),l));case _.BODY:return Oe({},d,{bodyAttributes:Oe({},f)});case _.HTML:return Oe({},d,{htmlAttributes:Oe({},f)})}return Oe({},d,(u={},u[c.type]=Oe({},f),u))},i.prototype.mapArrayTypeChildrenToProps=function(a,l){var u=Oe({},l);return Object.keys(a).forEach(function(c){var d;u=Oe({},u,(d={},d[c]=a[c],d))}),u},i.prototype.warnOnInvalidChildren=function(a,l){return!0},i.prototype.mapChildrenToProps=function(a,l){var u=this,c={};return fe.Children.forEach(a,function(d){if(!(!d||!d.props)){var f=d.props,h=f.children,x=dd(f,["children"]),y=E1(x);switch(u.warnOnInvalidChildren(d,h),d.type){case _.LINK:case _.META:case _.NOSCRIPT:case _.SCRIPT:case _.STYLE:c=u.flattenArrayTypeChildren({child:d,arrayTypeChildren:c,newChildProps:y,nestedChildren:h});break;default:l=u.mapObjectTypeChildren({child:d,newProps:l,newChildProps:y,nestedChildren:h});break}}}),l=this.mapArrayTypeChildrenToProps(c,l),l},i.prototype.render=function(){var a=this.props,l=a.children,u=dd(a,["children"]),c=Oe({},u);return l&&(c=this.mapChildrenToProps(l,c)),fe.createElement(t,c)},d1(i,null,[{key:"canUseDOM",set:function(a){t.canUseDOM=a}}]),i}(fe.Component),n.propTypes={base:ee.object,bodyAttributes:ee.object,children:ee.oneOfType([ee.arrayOf(ee.node),ee.node]),defaultTitle:ee.string,defer:ee.bool,encodeSpecialCharacters:ee.bool,htmlAttributes:ee.object,link:ee.arrayOf(ee.object),meta:ee.arrayOf(ee.object),noscript:ee.arrayOf(ee.object),onChangeClientState:ee.func,script:ee.arrayOf(ee.object),style:ee.arrayOf(ee.object),title:ee.string,titleAttributes:ee.object,titleTemplate:ee.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=Kh({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},A1=function(){return null},j1=K0(v1,S1,Kh)(A1),fl=N1(j1);fl.renderStatic=fl.rewind;const Qh=T.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ys=T.createContext({}),Nu=T.createContext(null),xs=typeof document<"u",R1=xs?T.useLayoutEffect:T.useEffect,Xh=T.createContext({strict:!1}),Au=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),L1="framerAppearId",qh="data-"+Au(L1);function M1(e,t,n,r){const{visualElement:o}=T.useContext(ys),i=T.useContext(Xh),s=T.useContext(Nu),a=T.useContext(Qh).reducedMotion,l=T.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;T.useInsertionEffect(()=>{u&&u.update(n,s)});const c=T.useRef(!!(n[qh]&&!window.HandoffComplete));return R1(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),T.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function er(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function O1(e,t,n){return T.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):er(n)&&(n.current=r))},[t])}function To(e){return typeof e=="string"||Array.isArray(e)}function ws(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ju=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ru=["initial",...ju];function Ss(e){return ws(e.animate)||Ru.some(t=>To(e[t]))}function Zh(e){return!!(Ss(e)||e.variants)}function D1(e,t){if(Ss(e)){const{initial:n,animate:r}=e;return{initial:n===!1||To(n)?n:void 0,animate:To(r)?r:void 0}}return e.inherit!==!1?t:{}}function V1(e){const{initial:t,animate:n}=D1(e,T.useContext(ys));return T.useMemo(()=>({initial:t,animate:n}),[hd(t),hd(n)])}function hd(e){return Array.isArray(e)?e.join(" "):e}const md={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Co={};for(const e in md)Co[e]={isEnabled:t=>md[e].some(n=>!!t[n])};function I1(e){for(const t in e)Co[t]={...Co[t],...e[t]}}const Jh=T.createContext({}),em=T.createContext({}),_1=Symbol.for("motionComponentSymbol");function F1({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&I1(e);function i(a,l){let u;const c={...T.useContext(Qh),...a,layoutId:z1(a)},{isStatic:d}=c,f=V1(a),h=r(a,d);if(!d&&xs){f.visualElement=M1(o,h,c,t);const x=T.useContext(em),y=T.useContext(Xh).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,y,e,x))}return T.createElement(ys.Provider,{value:f},u&&f.visualElement?T.createElement(u,{visualElement:f.visualElement,...c}):null,n(o,a,O1(h,f.visualElement,l),h,d,f.visualElement))}const s=T.forwardRef(i);return s[_1]=o,s}function z1({layoutId:e}){const t=T.useContext(Jh).id;return t&&e!==void 0?t+"-"+e:e}function B1(e){function t(r,o={}){return F1(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const U1=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Lu(e){return typeof e!="string"||e.includes("-")?!1:!!(U1.indexOf(e)>-1||/[A-Z]/.test(e))}const Gi={};function H1(e){Object.assign(Gi,e)}const Ro=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Dn=new Set(Ro);function tm(e,{layout:t,layoutId:n}){return Dn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Gi[e]||e==="opacity")}const ze=e=>!!(e&&e.getVelocity),$1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},W1=Ro.length;function G1(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),rm=nm("--"),pl=nm("var(--"),Y1=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,K1=(e,t)=>t&&typeof e=="number"?t.transform(e):e,sn=(e,t,n)=>Math.min(Math.max(n,e),t),Vn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Jr={...Vn,transform:e=>sn(0,1,e)},Jo={...Vn,default:1},eo=e=>Math.round(e*1e5)/1e5,Ts=/(-)?([\d]*\.?[\d])+/g,om=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Q1=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Lo(e){return typeof e=="string"}const Mo=e=>({test:t=>Lo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ft=Mo("deg"),xt=Mo("%"),V=Mo("px"),X1=Mo("vh"),q1=Mo("vw"),gd={...xt,parse:e=>xt.parse(e)/100,transform:e=>xt.transform(e*100)},vd={...Vn,transform:Math.round},im={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,size:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,rotate:Ft,rotateX:Ft,rotateY:Ft,rotateZ:Ft,scale:Jo,scaleX:Jo,scaleY:Jo,scaleZ:Jo,skew:Ft,skewX:Ft,skewY:Ft,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Jr,originX:gd,originY:gd,originZ:V,zIndex:vd,fillOpacity:Jr,strokeOpacity:Jr,numOctaves:vd};function Mu(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(rm(d)){i[d]=f;continue}const h=im[d],x=K1(f,h);if(Dn.has(d)){if(l=!0,s[d]=x,!c)continue;f!==(h.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=x):o[d]=x}if(t.transform||(l||r?o.transform=G1(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:h=0}=a;o.transformOrigin=`${d} ${f} ${h}`}}const Ou=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sm(e,t,n){for(const r in t)!ze(t[r])&&!tm(r,n)&&(e[r]=t[r])}function Z1({transformTemplate:e},t,n){return T.useMemo(()=>{const r=Ou();return Mu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function J1(e,t,n){const r=e.style||{},o={};return sm(o,r,e),Object.assign(o,Z1(e,t,n)),e.transformValues?e.transformValues(o):o}function ex(e,t,n){const r={},o=J1(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const tx=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Yi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tx.has(e)}let am=e=>!Yi(e);function nx(e){e&&(am=t=>t.startsWith("on")?!Yi(t):e(t))}try{nx(require("@emotion/is-prop-valid").default)}catch{}function rx(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(am(o)||n===!0&&Yi(o)||!t&&!Yi(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function yd(e,t,n){return typeof e=="string"?e:V.transform(t+n*e)}function ox(e,t,n){const r=yd(t,e.x,e.width),o=yd(n,e.y,e.height);return`${r} ${o}`}const ix={offset:"stroke-dashoffset",array:"stroke-dasharray"},sx={offset:"strokeDashoffset",array:"strokeDasharray"};function ax(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?ix:sx;e[i.offset]=V.transform(-r);const s=V.transform(t),a=V.transform(n);e[i.array]=`${s} ${a}`}function Du(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(Mu(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:x,dimensions:y}=e;h.transform&&(y&&(x.transform=h.transform),delete h.transform),y&&(o!==void 0||i!==void 0||x.transform)&&(x.transformOrigin=ox(y,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&ax(h,s,a,l,!1)}const lm=()=>({...Ou(),attrs:{}}),Vu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function lx(e,t,n,r){const o=T.useMemo(()=>{const i=lm();return Du(i,t,{enableHardwareAcceleration:!1},Vu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};sm(i,e.style,e),o.style={...i,...o.style}}return o}function ux(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Lu(n)?lx:ex)(r,i,s,n),c={...rx(r,typeof n=="string",e),...l,ref:o},{children:d}=r,f=T.useMemo(()=>ze(d)?d.get():d,[d]);return T.createElement(n,{...c,children:f})}}function um(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const cm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function dm(e,t,n,r){um(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(cm.has(o)?o:Au(o),t.attrs[o])}function Iu(e,t){const{style:n}=e,r={};for(const o in n)(ze(n[o])||t.style&&ze(t.style[o])||tm(o,e))&&(r[o]=n[o]);return r}function fm(e,t){const n=Iu(e,t);for(const r in e)if(ze(e[r])||ze(t[r])){const o=Ro.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function _u(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function cx(e){const t=T.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ki=e=>Array.isArray(e),dx=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),fx=e=>Ki(e)?e[e.length-1]||0:e;function xi(e){const t=ze(e)?e.get():e;return dx(t)?t.toValue():t}function px({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:hx(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const pm=e=>(t,n)=>{const r=T.useContext(ys),o=T.useContext(Nu),i=()=>px(e,t,r,o);return n?i():cx(i)};function hx(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=xi(i[f]);let{initial:s,animate:a}=e;const l=Ss(e),u=Zh(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!ws(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const x=_u(e,h);if(!x)return;const{transitionEnd:y,transition:S,...g}=x;for(const p in g){let m=g[p];if(Array.isArray(m)){const w=c?m.length-1:0;m=m[w]}m!==null&&(o[p]=m)}for(const p in y)o[p]=y[p]}),o}const ce=e=>e;class xd{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function mx(e){let t=new xd,n=new xd,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&s.add(l),f.add(l)&&d&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=mx(()=>n=!0),d),{}),s=d=>i[d].process(o),a=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,gx),1),o.timestamp=d,o.isProcessing=!0,ei.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:ei.reduce((d,f)=>{const h=i[f];return d[f]=(x,y=!1,S=!1)=>(n||l(),h.schedule(x,y,S)),d},{}),cancel:d=>ei.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:Z,cancel:Ot,state:Ee,steps:na}=vx(typeof requestAnimationFrame<"u"?requestAnimationFrame:ce,!0),yx={useVisualState:pm({scrapeMotionValuesFromProps:fm,createRenderState:lm,onMount:(e,t,{renderState:n,latestValues:r})=>{Z.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Z.render(()=>{Du(n,r,{enableHardwareAcceleration:!1},Vu(t.tagName),e.transformTemplate),dm(t,n)})}})},xx={useVisualState:pm({scrapeMotionValuesFromProps:Iu,createRenderState:Ou})};function wx(e,{forwardMotionProps:t=!1},n,r){return{...Lu(e)?yx:xx,preloadedFeatures:n,useRender:ux(t),createVisualElement:r,Component:e}}function kt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const hm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Cs(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Sx=e=>t=>hm(t)&&e(t,Cs(t));function Nt(e,t,n,r){return kt(e,t,Sx(n),r)}const Tx=(e,t)=>n=>t(e(n)),tn=(...e)=>e.reduce(Tx);function mm(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const wd=mm("dragHorizontal"),Sd=mm("dragVertical");function gm(e){let t=!1;if(e==="y")t=Sd();else if(e==="x")t=wd();else{const n=wd(),r=Sd();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function vm(){const e=gm(!0);return e?(e(),!1):!0}class dn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Td(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.pointerType==="touch"||vm())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Z.update(()=>a[r](i,s))};return Nt(e.current,n,o,{passive:!e.getProps()[r]})}class Cx extends dn{mount(){this.unmount=tn(Td(this.node,!0),Td(this.node,!1))}unmount(){}}class Px extends dn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tn(kt(this.node.current,"focus",()=>this.onFocus()),kt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ym=(e,t)=>t?e===t?!0:ym(e,t.parentElement):!1;function ra(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Cs(n))}class Ex extends dn{constructor(){super(...arguments),this.removeStartListeners=ce,this.removeEndListeners=ce,this.removeAccessibleListeners=ce,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Nt(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();Z.update(()=>{!d&&!ym(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=Nt(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=tn(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||ra("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Z.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=kt(this.node.current,"keyup",s),ra("down",(a,l)=>{this.startPress(a,l)})},n=kt(this.node.current,"keydown",t),r=()=>{this.isPressing&&ra("cancel",(i,s)=>this.cancelPress(i,s))},o=kt(this.node.current,"blur",r);this.removeAccessibleListeners=tn(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Z.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!vm()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Z.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Nt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=kt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const hl=new WeakMap,oa=new WeakMap,kx=e=>{const t=hl.get(e.target);t&&t(e)},bx=e=>{e.forEach(kx)};function Nx({root:e,...t}){const n=e||document;oa.has(n)||oa.set(n,{});const r=oa.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(bx,{root:e,...t})),r[o]}function Ax(e,t,n){const r=Nx(t);return hl.set(e,n),r.observe(e),()=>{hl.delete(e),r.unobserve(e)}}const jx={some:0,all:1};class Rx extends dn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:jx[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return Ax(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Lx(t,n))&&this.startObserver()}unmount(){}}function Lx({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Mx={inView:{Feature:Rx},tap:{Feature:Ex},focus:{Feature:Px},hover:{Feature:Cx}};function xm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function Dx(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ps(e,t,n){const r=e.getProps();return _u(r,t,n!==void 0?n:r.custom,Ox(e),Dx(e))}let Vx=ce,Fu=ce;const nn=e=>e*1e3,At=e=>e/1e3,Ix={current:!1},wm=e=>Array.isArray(e)&&typeof e[0]=="number";function Sm(e){return!!(!e||typeof e=="string"&&Tm[e]||wm(e)||Array.isArray(e)&&e.every(Sm))}const Hr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Tm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hr([0,.65,.55,1]),circOut:Hr([.55,0,1,.45]),backIn:Hr([.31,.01,.66,-.59]),backOut:Hr([.33,1.53,.69,.99])};function Cm(e){if(e)return wm(e)?Hr(e):Array.isArray(e)?e.map(Cm):Tm[e]}function _x(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Cm(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function Fx(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Pm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zx=1e-7,Bx=12;function Ux(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Pm(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>zx&&++aUx(i,0,1,e,n);return i=>i===0||i===1?i:Pm(o(i),t,r)}const Hx=Oo(.42,0,1,1),$x=Oo(0,0,.58,1),Em=Oo(.42,0,.58,1),Wx=e=>Array.isArray(e)&&typeof e[0]!="number",km=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bm=e=>t=>1-e(1-t),zu=e=>1-Math.sin(Math.acos(e)),Nm=bm(zu),Gx=km(zu),Am=Oo(.33,1.53,.69,.99),Bu=bm(Am),Yx=km(Bu),Kx=e=>(e*=2)<1?.5*Bu(e):.5*(2-Math.pow(2,-10*(e-1))),Qx={linear:ce,easeIn:Hx,easeInOut:Em,easeOut:$x,circIn:zu,circInOut:Gx,circOut:Nm,backIn:Bu,backInOut:Yx,backOut:Am,anticipate:Kx},Cd=e=>{if(Array.isArray(e)){Fu(e.length===4);const[t,n,r,o]=e;return Oo(t,n,r,o)}else if(typeof e=="string")return Qx[e];return e},Uu=(e,t)=>n=>!!(Lo(n)&&Q1.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),jm=(e,t,n)=>r=>{if(!Lo(r))return r;const[o,i,s,a]=r.match(Ts);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Xx=e=>sn(0,255,e),ia={...Vn,transform:e=>Math.round(Xx(e))},Tn={test:Uu("rgb","red"),parse:jm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ia.transform(e)+", "+ia.transform(t)+", "+ia.transform(n)+", "+eo(Jr.transform(r))+")"};function qx(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const ml={test:Uu("#"),parse:qx,transform:Tn.transform},tr={test:Uu("hsl","hue"),parse:jm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+xt.transform(eo(t))+", "+xt.transform(eo(n))+", "+eo(Jr.transform(r))+")"},Ne={test:e=>Tn.test(e)||ml.test(e)||tr.test(e),parse:e=>Tn.test(e)?Tn.parse(e):tr.test(e)?tr.parse(e):ml.parse(e),transform:e=>Lo(e)?e:e.hasOwnProperty("red")?Tn.transform(e):tr.transform(e)},ie=(e,t,n)=>-n*e+n*t+e;function sa(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Zx({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=sa(l,a,e+1/3),i=sa(l,a,e),s=sa(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const aa=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Jx=[ml,Tn,tr],ew=e=>Jx.find(t=>t.test(e));function Pd(e){const t=ew(e);let n=t.parse(e);return t===tr&&(n=Zx(n)),n}const Rm=(e,t)=>{const n=Pd(e),r=Pd(t),o={...n};return i=>(o.red=aa(n.red,r.red,i),o.green=aa(n.green,r.green,i),o.blue=aa(n.blue,r.blue,i),o.alpha=ie(n.alpha,r.alpha,i),Tn.transform(o))};function tw(e){var t,n;return isNaN(e)&&Lo(e)&&(((t=e.match(Ts))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(om))===null||n===void 0?void 0:n.length)||0)>0}const Lm={regex:Y1,countKey:"Vars",token:"${v}",parse:ce},Mm={regex:om,countKey:"Colors",token:"${c}",parse:Ne.parse},Om={regex:Ts,countKey:"Numbers",token:"${n}",parse:Vn.parse};function la(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function Qi(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&la(n,Lm),la(n,Mm),la(n,Om),n}function Dm(e){return Qi(e).values}function Vm(e){const{values:t,numColors:n,numVars:r,tokenised:o}=Qi(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function rw(e){const t=Dm(e);return Vm(e)(t.map(nw))}const an={test:tw,parse:Dm,createTransformer:Vm,getAnimatableNone:rw},Im=(e,t)=>n=>`${n>0?t:e}`;function _m(e,t){return typeof e=="number"?n=>ie(e,t,n):Ne.test(e)?Rm(e,t):e.startsWith("var(")?Im(e,t):zm(e,t)}const Fm=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>_m(i,t[s]));return i=>{for(let s=0;s{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=_m(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},zm=(e,t)=>{const n=an.createTransformer(t),r=Qi(e),o=Qi(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?tn(Fm(r.values,o.values),n):Im(e,t)},Po=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ed=(e,t)=>n=>ie(e,t,n);function iw(e){return typeof e=="number"?Ed:typeof e=="string"?Ne.test(e)?Rm:zm:Array.isArray(e)?Fm:typeof e=="object"?ow:Ed}function sw(e,t,n){const r=[],o=n||iw(e[0]),i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=sw(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(sn(e[0],e[i-1],u)):l}function aw(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Po(0,t,r);e.push(ie(n,1,o))}}function lw(e){const t=[0];return aw(t,e.length-1),t}function uw(e,t){return e.map(n=>n*t)}function cw(e,t){return e.map(()=>t||Em).splice(0,e.length-1)}function Xi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Wx(r)?r.map(Cd):Cd(r),i={done:!1,value:t[0]},s=uw(n&&n.length===t.length?n:lw(t),e),a=Bm(s,t,{ease:Array.isArray(o)?o:cw(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function Um(e,t){return t?e*(1e3/t):0}const dw=5;function Hm(e,t,n){const r=Math.max(t-dw,0);return Um(n-e(r),t-r)}const ua=.001,fw=.01,kd=10,pw=.05,hw=1;function mw({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Vx(e<=nn(kd));let s=1-t;s=sn(pw,hw,s),e=sn(fw,kd,At(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,h=gl(u,s),x=Math.exp(-d);return ua-f/h*x},i=u=>{const d=u*s*e,f=d*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,x=Math.exp(-d),y=gl(Math.pow(u,2),s);return(-o(u)+ua>0?-1:1)*((f-h)*x)/y}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-ua+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=vw(o,i,a);if(e=nn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const gw=12;function vw(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function ww(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!bd(e,xw)&&bd(e,yw)){const n=mw(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function $m({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=ww({...r,velocity:-At(r.velocity||0)}),h=d||0,x=l/(2*Math.sqrt(a*u)),y=i-o,S=At(Math.sqrt(a/u)),g=Math.abs(y)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let p;if(x<1){const m=gl(S,x);p=w=>{const C=Math.exp(-x*S*w);return i-C*((h+x*S*y)/m*Math.sin(m*w)+y*Math.cos(m*w))}}else if(x===1)p=m=>i-Math.exp(-S*m)*(y+(h+S*y)*m);else{const m=S*Math.sqrt(x*x-1);p=w=>{const C=Math.exp(-x*S*w),k=Math.min(m*w,300);return i-C*((h+x*S*y)*Math.sinh(k)+m*y*Math.cosh(k))/m}}return{calculatedDuration:f&&c||null,next:m=>{const w=p(m);if(f)s.done=m>=c;else{let C=h;m!==0&&(x<1?C=Hm(p,m,w):C=0);const k=Math.abs(C)<=n,P=Math.abs(i-w)<=t;s.done=k&&P}return s.value=s.done?i:w,s}}}function Nd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=E=>a!==void 0&&El,x=E=>a===void 0?l:l===void 0||Math.abs(a-E)-y*Math.exp(-E/r),m=E=>g+p(E),w=E=>{const L=p(E),M=m(E);f.done=Math.abs(L)<=u,f.value=f.done?g:M};let C,k;const P=E=>{h(f.value)&&(C=E,k=$m({keyframes:[f.value,x(f.value)],velocity:Hm(m,E,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:E=>{let L=!1;return!k&&C===void 0&&(L=!0,w(E),P(E)),C!==void 0&&E>C?k.next(E-C):(!L&&w(E),f)}}}const Sw=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Z.update(t,!0),stop:()=>Ot(t),now:()=>Ee.isProcessing?Ee.timestamp:performance.now()}},Ad=2e4;function jd(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Ad?1/0:t}const Tw={decay:Nd,inertia:Nd,tween:Xi,keyframes:Xi,spring:$m};function qi({autoplay:e=!0,delay:t=0,driver:n=Sw,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let h=1,x=!1,y,S;const g=()=>{S=new Promise(O=>{y=O})};g();let p;const m=Tw[o]||Xi;let w;m!==Xi&&typeof r[0]!="number"&&(w=Bm([0,100],r,{clamp:!1}),r=[0,100]);const C=m({...f,keyframes:r});let k;a==="mirror"&&(k=m({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let P="idle",E=null,L=null,M=null;C.calculatedDuration===null&&i&&(C.calculatedDuration=jd(C));const{calculatedDuration:$}=C;let D=1/0,re=1/0;$!==null&&(D=$+s,re=D*(i+1)-s);let j=0;const J=O=>{if(L===null)return;h>0&&(L=Math.min(L,O)),h<0&&(L=Math.min(O-re/h,L)),E!==null?j=E:j=Math.round(O-L)*h;const U=j-t*(h>=0?1:-1),G=h>=0?U<0:U>re;j=Math.max(U,0),P==="finished"&&E===null&&(j=re);let Be=j,Fn=C;if(i){const Ns=Math.min(j,re)/D;let Do=Math.floor(Ns),pn=Ns%1;!pn&&Ns>=1&&(pn=1),pn===1&&Do--,Do=Math.min(Do,i+1),!!(Do%2)&&(a==="reverse"?(pn=1-pn,s&&(pn-=s/D)):a==="mirror"&&(Fn=k)),Be=sn(0,1,pn)*D}const Ue=G?{done:!1,value:r[0]}:Fn.next(Be);w&&(Ue.value=w(Ue.value));let{done:fn}=Ue;!G&&$!==null&&(fn=h>=0?j>=re:j<=0);const cv=E===null&&(P==="finished"||P==="running"&&fn);return d&&d(Ue.value),cv&&N(),Ue},B=()=>{p&&p.stop(),p=void 0},de=()=>{P="idle",B(),y(),g(),L=M=null},N=()=>{P="finished",c&&c(),B(),y()},R=()=>{if(x)return;p||(p=n(J));const O=p.now();l&&l(),E!==null?L=O-E:(!L||P==="finished")&&(L=O),P==="finished"&&g(),M=L,E=null,P="running",p.start()};e&&R();const I={then(O,U){return S.then(O,U)},get time(){return At(j)},set time(O){O=nn(O),j=O,E!==null||!p||h===0?E=O:L=p.now()-O/h},get duration(){const O=C.calculatedDuration===null?jd(C):C.calculatedDuration;return At(O)},get speed(){return h},set speed(O){O===h||!p||(h=O,I.time=At(j))},get state(){return P},play:R,pause:()=>{P="paused",E=j},stop:()=>{x=!0,P!=="idle"&&(P="idle",u&&u(),de())},cancel:()=>{M!==null&&J(M),de()},complete:()=>{P="finished"},sample:O=>(L=0,J(O))};return I}function Cw(e){let t;return()=>(t===void 0&&(t=e()),t)}const Pw=Cw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ew=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ti=10,kw=2e4,bw=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Sm(t.ease);function Nw(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Pw()&&Ew.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const c=()=>{l=new Promise(m=>{a=m})};c();let{keyframes:d,duration:f=300,ease:h,times:x}=o;if(bw(t,o)){const m=qi({...o,repeat:0,delay:0});let w={done:!1,value:d[0]};const C=[];let k=0;for(;!w.done&&k{u=!1,y.cancel()},g=()=>{u=!0,Z.update(S),a(),c()};return y.onfinish=()=>{u||(e.set(Fx(d,o)),r&&r(),g())},{then(m,w){return l.then(m,w)},attachTimeline(m){return y.timeline=m,y.onfinish=null,ce},get time(){return At(y.currentTime||0)},set time(m){y.currentTime=nn(m)},get speed(){return y.playbackRate},set speed(m){y.playbackRate=m},get duration(){return At(f)},play:()=>{s||(y.play(),Ot(S))},pause:()=>y.pause(),stop:()=>{if(s=!0,y.playState==="idle")return;const{currentTime:m}=y;if(m){const w=qi({...o,autoplay:!1});e.setWithVelocity(w.sample(m-ti).value,w.sample(m).value,ti)}g()},complete:()=>{u||y.finish()},cancel:g}}function Aw({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ce,pause:ce,stop:ce,then:i=>(i(),Promise.resolve()),cancel:ce,complete:ce});return t?qi({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const jw={type:"spring",stiffness:500,damping:25,restSpeed:10},Rw=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Lw={type:"keyframes",duration:.8},Mw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ow=(e,{keyframes:t})=>t.length>2?Lw:Dn.has(e)?e.startsWith("scale")?Rw(t[1]):jw:Mw,vl=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(an.test(t)||t==="0")&&!t.startsWith("url(")),Dw=new Set(["brightness","contrast","saturate","opacity"]);function Vw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ts)||[];if(!r)return e;const o=n.replace(r,"");let i=Dw.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Iw=/([a-z-]*)\(.*?\)/g,yl={...an,getAnimatableNone:e=>{const t=e.match(Iw);return t?t.map(Vw).join(" "):e}},_w={...im,color:Ne,backgroundColor:Ne,outlineColor:Ne,fill:Ne,stroke:Ne,borderColor:Ne,borderTopColor:Ne,borderRightColor:Ne,borderBottomColor:Ne,borderLeftColor:Ne,filter:yl,WebkitFilter:yl},Hu=e=>_w[e];function Wm(e,t){let n=Hu(e);return n!==yl&&(n=an),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Gm=e=>/^0[^.\s]+$/.test(e);function Fw(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Gm(e)}function zw(e,t,n,r){const o=vl(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=$u(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-nn(s);const l=zw(t,e,n,i),u=l[0],c=l[l.length-1],d=vl(e,u),f=vl(e,c);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:x=>{t.set(x),i.onUpdate&&i.onUpdate(x)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(Bw(i)||(h={...h,...Ow(e,h)}),h.duration&&(h.duration=nn(h.duration)),h.repeatDelay&&(h.repeatDelay=nn(h.repeatDelay)),!d||!f||Ix.current||i.type===!1||Uw.skipAnimations)return Aw(h);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const x=Nw(t,e,h);if(x)return x}return qi(h)};function Zi(e){return!!(ze(e)&&e.add)}const Ym=e=>/^\-?\d*\.?\d+$/.test(e);function Gu(e,t){e.indexOf(t)===-1&&e.push(t)}function Yu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ku{constructor(){this.subscriptions=[]}add(t){return Gu(this.subscriptions,t),()=>Yu(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class $w{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=Ee;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,Z.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Z.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Hw(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ku);const r=this.events[t].add(n);return t==="change"?()=>{r(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Um(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yr(e,t){return new $w(e,t)}const Km=e=>t=>t.test(e),Ww={test:e=>e==="auto",parse:e=>e},Qm=[Vn,V,xt,Ft,q1,X1,Ww],Dr=e=>Qm.find(Km(e)),Gw=[...Qm,Ne,an],Yw=e=>Gw.find(Km(e));function Kw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yr(n))}function Qw(e,t){const n=Ps(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=fx(i[s]);Kw(e,s,a)}}function Xw(e,t,n){var r,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;al.remove(d))),u.push(S)}return s&&Promise.all(u).then(()=>{s&&Qw(e,s)}),u}function xl(e,t,n={}){const r=Ps(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Xm(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return tS(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function tS(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(nS).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(xl(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function nS(e,t){return e.sortNodePosition(t)}function rS(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>xl(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=xl(e,t,n);else{const o=typeof t=="function"?Ps(e,t,n.custom):t;r=Promise.all(Xm(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const oS=[...ju].reverse(),iS=ju.length;function sS(e){return t=>Promise.all(t.map(({animation:n,options:r})=>rS(e,n,r)))}function aS(e){let t=sS(e);const n=uS();let r=!0;const o=(l,u)=>{const c=Ps(e,u);if(c){const{transition:d,transitionEnd:f,...h}=c;l={...l,...h,...f}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],h=new Set;let x={},y=1/0;for(let g=0;gy&&C,M=!1;const $=Array.isArray(w)?w:[w];let D=$.reduce(o,{});k===!1&&(D={});const{prevResolvedValues:re={}}=m,j={...re,...D},J=B=>{L=!0,h.has(B)&&(M=!0,h.delete(B)),m.needsAnimating[B]=!0};for(const B in j){const de=D[B],N=re[B];if(x.hasOwnProperty(B))continue;let R=!1;Ki(de)&&Ki(N)?R=!xm(de,N):R=de!==N,R?de!==void 0?J(B):h.add(B):de!==void 0&&h.has(B)?J(B):m.protectedKeys[B]=!0}m.prevProp=w,m.prevResolvedValues=D,m.isActive&&(x={...x,...D}),r&&e.blockInitialAnimation&&(L=!1),L&&(!P||M)&&f.push(...$.map(B=>({animation:B,options:{type:p,...l}})))}if(h.size){const g={};h.forEach(p=>{const m=e.getBaseTarget(p);m!==void 0&&(g[p]=m)}),f.push({animation:g})}let S=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(f):Promise.resolve()}function a(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var x;return(x=h.animationState)===null||x===void 0?void 0:x.setActive(l,u)}),n[l].isActive=u;const f=s(c,l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n}}function lS(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!xm(t,e):!1}function hn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function uS(){return{animate:hn(!0),whileInView:hn(),whileHover:hn(),whileTap:hn(),whileDrag:hn(),whileFocus:hn(),exit:hn()}}class cS extends dn{constructor(t){super(t),t.animationState||(t.animationState=aS(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ws(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let dS=0;class fS extends dn{constructor(){super(...arguments),this.id=dS++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const pS={animation:{Feature:cS},exit:{Feature:fS}},Rd=(e,t)=>Math.abs(e-t);function hS(e,t){const n=Rd(e.x,t.x),r=Rd(e.y,t.y);return Math.sqrt(n**2+r**2)}class qm{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=da(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=hS(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:x}=d,{timestamp:y}=Ee;this.history.push({...x,timestamp:y});const{onStart:S,onMove:g}=this.handlers;f||(S&&S(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=ca(f,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:x,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=da(d.type==="pointercancel"?this.lastMoveEventInfo:ca(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,S),x&&x(d,S)},!hm(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Cs(t),a=ca(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Ee;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,da(a,this.history)),this.removeListeners=tn(Nt(this.contextWindow,"pointermove",this.handlePointerMove),Nt(this.contextWindow,"pointerup",this.handlePointerUp),Nt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ot(this.updatePoint)}}function ca(e,t){return t?{point:t(e.point)}:e}function Ld(e,t){return{x:e.x-t.x,y:e.y-t.y}}function da({point:e},t){return{point:e,delta:Ld(e,Zm(t)),offset:Ld(e,mS(t)),velocity:gS(t,.1)}}function mS(e){return e[0]}function Zm(e){return e[e.length-1]}function gS(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Zm(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>nn(t)));)n--;if(!r)return{x:0,y:0};const i=At(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ke(e){return e.max-e.min}function wl(e,t=0,n=.01){return Math.abs(e-t)<=n}function Md(e,t,n,r=.5){e.origin=r,e.originPoint=ie(t.min,t.max,e.origin),e.scale=Ke(n)/Ke(t),(wl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ie(n.min,n.max,e.origin)-e.originPoint,(wl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function to(e,t,n,r){Md(e.x,t.x,n.x,r?r.originX:void 0),Md(e.y,t.y,n.y,r?r.originY:void 0)}function Od(e,t,n){e.min=n.min+t.min,e.max=e.min+Ke(t)}function vS(e,t,n){Od(e.x,t.x,n.x),Od(e.y,t.y,n.y)}function Dd(e,t,n){e.min=t.min-n.min,e.max=e.min+Ke(t)}function no(e,t,n){Dd(e.x,t.x,n.x),Dd(e.y,t.y,n.y)}function yS(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ie(n,e,r.max):Math.min(e,n)),e}function Vd(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function xS(e,{top:t,left:n,bottom:r,right:o}){return{x:Vd(e.x,n,o),y:Vd(e.y,t,r)}}function Id(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Po(t.min,t.max-r,e.min):r>o&&(n=Po(e.min,e.max-o,t.min)),sn(0,1,n)}function TS(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Sl=.35;function CS(e=Sl){return e===!1?e=0:e===!0&&(e=Sl),{x:_d(e,"left","right"),y:_d(e,"top","bottom")}}function _d(e,t,n){return{min:Fd(e,t),max:Fd(e,n)}}function Fd(e,t){return typeof e=="number"?e:e[t]||0}const zd=()=>({translate:0,scale:1,origin:0,originPoint:0}),nr=()=>({x:zd(),y:zd()}),Bd=()=>({min:0,max:0}),he=()=>({x:Bd(),y:Bd()});function Ze(e){return[e("x"),e("y")]}function Jm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function PS({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ES(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function fa(e){return e===void 0||e===1}function Tl({scale:e,scaleX:t,scaleY:n}){return!fa(e)||!fa(t)||!fa(n)}function vn(e){return Tl(e)||eg(e)||e.z||e.rotate||e.rotateX||e.rotateY}function eg(e){return Ud(e.x)||Ud(e.y)}function Ud(e){return e&&e!=="0%"}function Ji(e,t,n){const r=e-n,o=t*r;return n+o}function Hd(e,t,n,r,o){return o!==void 0&&(e=Ji(e,o,r)),Ji(e,n,r)+t}function Cl(e,t=0,n=1,r,o){e.min=Hd(e.min,t,n,r,o),e.max=Hd(e.max,t,n,r,o)}function tg(e,{x:t,y:n}){Cl(e.x,t.translate,t.scale,t.originPoint),Cl(e.y,n.translate,n.scale,n.originPoint)}function kS(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function Ut(e,t){e.min=e.min+t,e.max=e.max+t}function Wd(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=ie(e.min,e.max,i);Cl(e,t[n],t[r],s,t.scale)}const bS=["x","scaleX","originX"],NS=["y","scaleY","originY"];function rr(e,t){Wd(e.x,t,bS),Wd(e.y,t,NS)}function ng(e,t){return Jm(ES(e.getBoundingClientRect(),t))}function AS(e,t,n){const r=ng(e,n),{scroll:o}=t;return o&&(Ut(r.x,o.offset.x),Ut(r.y,o.offset.y)),r}const rg=({current:e})=>e?e.ownerDocument.defaultView:null,jS=new WeakMap;class RS{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=he(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Cs(c,"page").point)},i=(c,d)=>{const{drag:f,dragPropagation:h,onDragStart:x}=this.getProps();if(f&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=gm(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ze(S=>{let g=this.getAxisMotionValue(S).get()||0;if(xt.test(g)){const{projection:p}=this.visualElement;if(p&&p.layout){const m=p.layout.layoutBox[S];m&&(g=Ke(m)*(parseFloat(g)/100))}}this.originPoint[S]=g}),x&&Z.update(()=>x(c,d),!1,!0);const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:x,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:S}=d;if(h&&this.currentDirection===null){this.currentDirection=LS(S),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",d.point,S),this.updateAxis("y",d.point,S),this.visualElement.render(),y&&y(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Ze(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new qm(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:rg(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Z.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!ni(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=yS(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&er(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=xS(o.layoutBox,n):this.constraints=!1,this.elastic=CS(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ze(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=TS(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!er(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=AS(r,o.root,this.visualElement.getTransformPagePoint());let s=wS(o.layout.layoutBox,i);if(n){const a=n(PS(s));this.hasMutatedConstraints=!!a,a&&(s=Jm(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ze(c=>{if(!ni(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,x={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,x)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Wu(t,r,0,n))}stopAnimation(){Ze(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ze(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ze(n=>{const{drag:r}=this.getProps();if(!ni(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ie(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!er(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ze(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=SS({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ze(s=>{if(!ni(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ie(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;jS.set(this.visualElement,this);const t=this.visualElement.current,n=Nt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();er(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const s=kt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ze(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Sl,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function ni(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function LS(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class MS extends dn{constructor(t){super(t),this.removeGroupControls=ce,this.removeListeners=ce,this.controls=new RS(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ce}unmount(){this.removeGroupControls(),this.removeListeners()}}const Gd=e=>(t,n)=>{e&&Z.update(()=>e(t,n))};class OS extends dn{constructor(){super(...arguments),this.removePointerDownListener=ce}onPointerDown(t){this.session=new qm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Gd(t),onStart:Gd(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Z.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=Nt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function DS(){const e=T.useContext(Nu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=T.useId();return T.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const wi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Yd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=Yd(e,t.target.x),r=Yd(e,t.target.y);return`${n}% ${r}%`}},VS={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=an.parse(e);if(o.length>5)return r;const i=an.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=ie(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class IS extends fe.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;H1(_S),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),wi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Z.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function og(e){const[t,n]=DS(),r=T.useContext(Jh);return fe.createElement(IS,{...e,layoutGroup:r,switchLayoutGroup:T.useContext(em),isPresent:t,safeToRemove:n})}const _S={borderRadius:{...Vr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vr,borderTopRightRadius:Vr,borderBottomLeftRadius:Vr,borderBottomRightRadius:Vr,boxShadow:VS},ig=["TopLeft","TopRight","BottomLeft","BottomRight"],FS=ig.length,Kd=e=>typeof e=="string"?parseFloat(e):e,Qd=e=>typeof e=="number"||V.test(e);function zS(e,t,n,r,o,i){o?(e.opacity=ie(0,n.opacity!==void 0?n.opacity:1,BS(r)),e.opacityExit=ie(t.opacity!==void 0?t.opacity:1,0,US(r))):i&&(e.opacity=ie(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Po(e,t,r))}function qd(e,t){e.min=t.min,e.max=t.max}function qe(e,t){qd(e.x,t.x),qd(e.y,t.y)}function Zd(e,t,n,r,o){return e-=t,e=Ji(e,1/n,r),o!==void 0&&(e=Ji(e,1/o,r)),e}function HS(e,t=0,n=1,r=.5,o,i=e,s=e){if(xt.test(t)&&(t=parseFloat(t),t=ie(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ie(i.min,i.max,r);e===i&&(a-=t),e.min=Zd(e.min,t,n,a,o),e.max=Zd(e.max,t,n,a,o)}function Jd(e,t,[n,r,o],i,s){HS(e,t[n],t[r],t[o],t.scale,i,s)}const $S=["x","scaleX","originX"],WS=["y","scaleY","originY"];function ef(e,t,n,r){Jd(e.x,t,$S,n?n.x:void 0,r?r.x:void 0),Jd(e.y,t,WS,n?n.y:void 0,r?r.y:void 0)}function tf(e){return e.translate===0&&e.scale===1}function ag(e){return tf(e.x)&&tf(e.y)}function GS(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function lg(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function nf(e){return Ke(e.x)/Ke(e.y)}class YS{constructor(){this.members=[]}add(t){Gu(this.members,t),t.scheduleRender()}remove(t){if(Yu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rf(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const KS=(e,t)=>e.depth-t.depth;class QS{constructor(){this.children=[],this.isDirty=!1}add(t){Gu(this.children,t),this.isDirty=!0}remove(t){Yu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(KS),this.isDirty=!1,this.children.forEach(t)}}function XS(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Ot(r),e(i-t))};return Z.read(r,!0),()=>Ot(r)}function qS(e){window.MotionDebug&&window.MotionDebug.record(e)}function ZS(e){return e instanceof SVGElement&&e.tagName!=="svg"}function JS(e,t,n){const r=ze(e)?e:yr(e);return r.start(Wu("",r,t,n)),r.animation}const of=["","X","Y","Z"],eT={visibility:"hidden"},sf=1e3;let tT=0;const yn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ug({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=tT++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,yn.totalNodes=yn.resolvedTargetDeltas=yn.recalculatedProjection=0,this.nodes.forEach(oT),this.nodes.forEach(uT),this.nodes.forEach(cT),this.nodes.forEach(iT),qS(yn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=XS(f,250),wi.hasAnimatedSinceResize&&(wi.hasAnimatedSinceResize=!1,this.nodes.forEach(lf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||mT,{onLayoutAnimationStart:S,onLayoutAnimationComplete:g}=c.getProps(),p=!this.targetLayout||!lg(this.targetLayout,x)||h,m=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const w={...$u(y,"layout"),onPlay:S,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||lf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ot(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(dT),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(sT),this.sharedNodes.forEach(fT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const C=w/1e3;uf(d.x,s.x,C),uf(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(no(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),pT(this.relativeTarget,this.relativeTargetOrigin,f,C),m&&GS(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=he()),qe(m,this.relativeTarget)),y&&(this.animationValues=c,zS(c,u,this.latestValues,C,p,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{wi.hasAnimatedSinceResize=!0,this.currentAnimation=JS(0,sf,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(sf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&cg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||he();const d=Ke(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Ke(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}qe(a,l),rr(a,c),to(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new YS),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(af),this.root.sharedNodes.clear()}}}function nT(e){e.updateLayout()}function rT(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Ze(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=Ke(f);f.min=r[d].min,f.max=f.min+h}):cg(i,n.layoutBox,r)&&Ze(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=Ke(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const a=nr();to(a,r,n.layoutBox);const l=nr();s?to(l,e.applyTransform(o,!0),n.measuredBox):to(l,r,n.layoutBox);const u=!ag(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const x=he();no(x,n.layoutBox,f.layoutBox);const y=he();no(y,r,h.layoutBox),lg(x,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=x,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function oT(e){yn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function iT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sT(e){e.clearSnapshot()}function af(e){e.clearMeasurements()}function aT(e){e.isLayoutDirty=!1}function lT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function lf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function uT(e){e.resolveTargetDelta()}function cT(e){e.calcProjection()}function dT(e){e.resetRotation()}function fT(e){e.removeLeadSnapshot()}function uf(e,t,n){e.translate=ie(t.translate,0,n),e.scale=ie(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function cf(e,t,n,r){e.min=ie(t.min,n.min,r),e.max=ie(t.max,n.max,r)}function pT(e,t,n,r){cf(e.x,t.x,n.x,r),cf(e.y,t.y,n.y,r)}function hT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const mT={duration:.45,ease:[.4,0,.1,1]},df=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),ff=df("applewebkit/")&&!df("chrome/")?Math.round:ce;function pf(e){e.min=ff(e.min),e.max=ff(e.max)}function gT(e){pf(e.x),pf(e.y)}function cg(e,t,n){return e==="position"||e==="preserve-aspect"&&!wl(nf(t),nf(n),.2)}const vT=ug({attachResizeListener:(e,t)=>kt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),pa={current:void 0},dg=ug({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!pa.current){const e=new vT({});e.mount(window),e.setOptions({layoutScroll:!0}),pa.current=e}return pa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),yT={pan:{Feature:OS},drag:{Feature:MS,ProjectionNode:dg,MeasureLayout:og}},xT=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function wT(e){const t=xT.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Pl(e,t,n=1){const[r,o]=wT(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Ym(s)?parseFloat(s):s}else return pl(o)?Pl(o,t,n+1):o}function ST(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!pl(i))return;const s=Pl(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!pl(i))continue;const s=Pl(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const TT=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),fg=e=>TT.has(e),CT=e=>Object.keys(e).some(fg),hf=e=>e===Vn||e===V,mf=(e,t)=>parseFloat(e.split(", ")[t]),gf=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return mf(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?mf(i[1],e):0}},PT=new Set(["x","y","z"]),ET=Ro.filter(e=>!PT.has(e));function kT(e){const t=[];return ET.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const xr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:gf(4,13),y:gf(5,14)};xr.translateX=xr.x;xr.translateY=xr.y;const bT=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=xr[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=xr[u](l,i)}),e},NT=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(fg);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=Dr(c);const f=t[l];let h;if(Ki(f)){const x=f.length,y=f[0]===null?1:0;c=f[y],d=Dr(c);for(let S=y;S=0?window.pageYOffset:null,u=bT(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),xs&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function AT(e,t,n,r){return CT(t)?NT(e,t,n,r):{target:t,transitionEnd:r}}const jT=(e,t,n,r)=>{const o=ST(e,t,r);return t=o.target,r=o.transitionEnd,AT(e,t,n,r)},El={current:null},pg={current:!1};function RT(){if(pg.current=!0,!!xs)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>El.current=e.matches;e.addListener(t),t()}else El.current=!1}function LT(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(ze(i))e.addValue(o,i),Zi(r)&&r.add(o);else if(ze(s))e.addValue(o,yr(i,{owner:e})),Zi(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,yr(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const vf=new WeakMap,hg=Object.keys(Co),MT=hg.length,yf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],OT=Ru.length;class DT{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Z.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=Ss(n),this.isVariantNode=Zh(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const f=c[d];a[d]!==void 0&&ze(f)&&(f.set(a[d],!1),Zi(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,vf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),pg.current||RT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:El.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){vf.delete(this.current),this.projection&&this.projection.unmount(),Ot(this.notifyUpdate),Ot(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Dn.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Z.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:h})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):he()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=yr(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=_u(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ze(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ku),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class mg extends DT{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let s=Zw(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){Xw(this,r,s);const a=jT(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function VT(e){return window.getComputedStyle(e)}class IT extends mg{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Dn.has(n)){const r=Hu(n);return r&&r.default||0}else{const r=VT(t),o=(rm(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ng(t,n)}build(t,n,r,o){Mu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Iu(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ze(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){um(t,n,r,o)}}class _T extends mg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Dn.has(n)){const r=Hu(n);return r&&r.default||0}return n=cm.has(n)?n:Au(n),t.getAttribute(n)}measureInstanceViewportBox(){return he()}scrapeMotionValuesFromProps(t,n){return fm(t,n)}build(t,n,r,o){Du(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){dm(t,n,r,o)}mount(t){this.isSVGTag=Vu(t.tagName),super.mount(t)}}const FT=(e,t)=>Lu(e)?new _T(t,{enableHardwareAcceleration:!1}):new IT(t,{enableHardwareAcceleration:!0}),zT={layout:{ProjectionNode:dg,MeasureLayout:og}},BT={...pS,...Mx,...yT,...zT},X=B1((e,t)=>wx(e,t,BT,FT));var UT={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const HT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),le=(e,t)=>{const n=T.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:s,children:a,...l},u)=>T.createElement("svg",{ref:u,...UT,width:o,height:o,stroke:r,strokeWidth:s?Number(i)*24/Number(o):i,className:`lucide lucide-${HT(e)}`,...l},[...t.map(([c,d])=>T.createElement(c,d)),...(Array.isArray(a)?a:[a])||[]]));return n.displayName=`${e}`,n},gg=le("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]),kl=le("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["polyline",{points:"22 4 12 14.01 9 11.01",key:"6xbx8j"}]]),vg=le("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]),$T=le("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]),WT=le("FileCheck",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]),GT=le("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]),YT=le("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"2",x2:"22",y1:"12",y2:"12",key:"1dnqot"}],["path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z",key:"nb9nel"}]]),KT=le("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]),QT=le("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]),XT=le("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]),yg=le("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]),qT=le("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),xg=le("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]),ZT=le("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),JT=le("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),xf=le("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]),eC=le("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),tC=le("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]),Es=le("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]),nC=le("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]),rC=le("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]),wg=le("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),Sg=le("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Tg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;te&&(t=0,r=n,n=new Map)}return{get:function(s){var a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set:function(s,a){n.has(s)?n.set(s,a):o(s,a)}}}var kg="!";function dC(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(s){for(var a=[],l=0,u=0,c,d=0;du?c-u:void 0;return{modifiers:a,hasImportantModifier:x,baseClassName:y,maybePostfixModifierPosition:S}}}function fC(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function pC(e){return{cache:cC(e.cacheSize),splitModifiers:dC(e),...iC(e)}}var hC=/\s+/;function mC(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(hC).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,c=a.baseClassName,d=a.maybePostfixModifierPosition,f=r(d?c.substring(0,d):c),h=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:s};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:s};h=!1}var x=fC(l).join(":"),y=u?x+kg:x;return{isTailwindClass:!0,modifierId:y,classGroupId:f,originalClassName:s,hasPostfixModifier:h}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,c=a+l;return i.has(c)?!1:(i.add(c),o(l,u).forEach(function(d){return i.add(a+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function gC(){for(var e=arguments.length,t=new Array(e),n=0;n{let n=!1;const r=e.map(o=>{const i=Cf(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{const{children:n,...r}=e,o=T.Children.toArray(n),i=o.find(MC);if(i){const s=i.props.children,a=o.map(l=>l===i?T.Children.count(s)>1?T.Children.only(null):T.isValidElement(s)?s.props.children:null:l);return v.jsx(Al,{...r,ref:t,children:T.isValidElement(s)?T.cloneElement(s,void 0,a):null})}return v.jsx(Al,{...r,ref:t,children:n})});Eo.displayName="Slot";var Al=T.forwardRef((e,t)=>{const{children:n,...r}=e;if(T.isValidElement(n)){const o=DC(n);return T.cloneElement(n,{...OC(r,n.props),ref:t?Ag(t,o):o})}return T.Children.count(n)>1?T.Children.only(null):null});Al.displayName="SlotClone";var LC=({children:e})=>v.jsx(v.Fragment,{children:e});function MC(e){return T.isValidElement(e)&&e.type===LC}function OC(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function DC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Pf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ef=Cg,jg=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Ef(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const f=Pf(c)||Pf(d);return o[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...h}=c;return Object.entries(h).every(x=>{let[y,S]=x;return Array.isArray(S)?S.includes({...i,...a}[y]):{...i,...a}[y]===S})?[...u,d,f]:u},[]);return Ef(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},VC=jg("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),wr=fe.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?Eo:"button";return v.jsx(s,{className:_n(VC({variant:t,size:n,className:e})),ref:i,...o})});wr.displayName="Button";const IC=()=>{const[e,t]=T.useState(!1),[n,r]=T.useState(!1);T.useEffect(()=>{const s=()=>{t(window.scrollY>20)};return window.addEventListener("scroll",s),()=>window.removeEventListener("scroll",s)},[]);const o=s=>{const a=document.getElementById(s);a&&(a.scrollIntoView({behavior:"smooth"}),r(!1))},i=[{label:"About",id:"about"},{label:"Services",id:"services"},{label:"Our Team",id:"team"},{label:"Why Choose Us",id:"why-choose-us"},{label:"Contact",id:"contact"}];return v.jsx(X.header,{initial:{y:-100},animate:{y:0},transition:{duration:.6},className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${e?"bg-white shadow-lg":"bg-white/95 backdrop-blur-sm"}`,children:v.jsxs("div",{className:"container mx-auto px-4",children:[v.jsxs("div",{className:"flex items-center justify-between h-20",children:[v.jsx(X.div,{whileHover:{scale:1.02},className:"flex items-center cursor-pointer",onClick:()=>o("hero"),children:v.jsx("img",{src:"https://horizons-cdn.hostinger.com/e0aca99d-781a-4dc1-a799-260bb03b9ce1/logo-2-Qhd9N.png",alt:"SafeGuard NY LLC Logo",className:"h-10 w-auto"})}),v.jsxs("nav",{className:"hidden md:flex items-center space-x-8",children:[i.map(s=>v.jsx("button",{onClick:()=>o(s.id),className:"text-slate-700 hover:text-blue-600 font-medium transition-colors duration-200",children:s.label},s.id)),v.jsx(wr,{onClick:()=>o("contact"),className:"bg-blue-600 hover:bg-blue-700 text-white",children:"Get Started"})]}),v.jsx("button",{className:"md:hidden text-slate-900",onClick:()=>r(!n),children:n?v.jsx(Sg,{className:"w-6 h-6"}):v.jsx(JT,{className:"w-6 h-6"})})]}),n&&v.jsx(X.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"md:hidden pb-4",children:v.jsxs("nav",{className:"flex flex-col space-y-4",children:[i.map(s=>v.jsx("button",{onClick:()=>o(s.id),className:"text-slate-700 hover:text-blue-600 font-medium transition-colors duration-200 text-left",children:s.label},s.id)),v.jsx(wr,{onClick:()=>o("contact"),className:"bg-blue-600 hover:bg-blue-700 text-white w-full",children:"Get Started"})]})})]})})},_C=()=>{const e=t=>{const n=document.getElementById(t);n&&n.scrollIntoView({behavior:"smooth"})};return v.jsx("section",{id:"hero",className:"pt-32 pb-20 bg-gradient-to-br from-blue-50 via-white to-slate-50",children:v.jsx("div",{className:"container mx-auto px-4",children:v.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[v.jsxs(X.div,{initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.8},children:[v.jsxs("div",{className:"inline-flex items-center space-x-2 bg-blue-100 text-blue-700 px-4 py-2 rounded-full mb-6",children:[v.jsx(Es,{className:"w-4 h-4"}),v.jsx("span",{className:"text-sm font-semibold",children:"Trusted Since 2010"})]}),v.jsx("h1",{className:"text-5xl md:text-6xl font-bold text-slate-900 mb-6 leading-tight",children:"Secure Escrow & Title Services in New York"}),v.jsx("p",{className:"text-xl text-slate-600 mb-8 leading-relaxed",children:"Protecting your real estate transactions with professional escrow and title services. Your peace of mind is our priority."}),v.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 mb-8",children:[v.jsx(wr,{onClick:()=>e("contact"),size:"lg",className:"bg-blue-600 hover:bg-blue-700 text-white text-lg px-8",children:"Get Started Today"}),v.jsx(wr,{onClick:()=>e("services"),size:"lg",variant:"outline",className:"border-2 border-blue-600 text-blue-600 hover:bg-blue-50 text-lg px-8",children:"Our Services"})]}),v.jsx("div",{className:"flex flex-col space-y-3",children:["Licensed & Insured","Fast Processing","24/7 Support"].map((t,n)=>v.jsxs(X.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.3+n*.1},className:"flex items-center space-x-2",children:[v.jsx(kl,{className:"w-5 h-5 text-green-600"}),v.jsx("span",{className:"text-slate-700 font-medium",children:t})]},n))})]}),v.jsxs(X.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},transition:{duration:.8},className:"relative",children:[v.jsxs("div",{className:"relative rounded-2xl overflow-hidden shadow-2xl",children:[v.jsx("img",{alt:"Corporate escrow agent reviewing documents",class:"w-full h-auto",src:"https://horizons-cdn.hostinger.com/e0aca99d-781a-4dc1-a799-260bb03b9ce1/pexels-vlasceanu-1400249-LOhaH.jpg"}),v.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-blue-900/30 to-transparent"})]}),v.jsx(X.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.5,type:"spring"},className:"absolute -bottom-6 -left-6 bg-white p-6 rounded-xl shadow-xl",children:v.jsxs("div",{className:"flex items-center space-x-4",children:[v.jsx("div",{className:"bg-green-100 p-3 rounded-full",children:v.jsx(kl,{className:"w-8 h-8 text-green-600"})}),v.jsxs("div",{children:[v.jsx("p",{className:"text-2xl font-bold text-slate-900",children:"5,000+"}),v.jsx("p",{className:"text-sm text-slate-600",children:"Successful Closings"})]})]})})]})]})})})},FC=()=>{const e=[{icon:Es,value:"15+",label:"Years Experience"},{icon:gg,value:"5,000+",label:"Transactions"},{icon:wg,value:"98%",label:"Client Satisfaction"},{icon:nC,value:"$2B+",label:"Assets Protected"}];return v.jsx("section",{id:"about",className:"py-20 bg-white",children:v.jsxs("div",{className:"container mx-auto px-4",children:[v.jsxs(X.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[v.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-slate-900 mb-4",children:"About SafeGuard NY LLC"}),v.jsx("p",{className:"text-xl text-slate-600 max-w-3xl mx-auto",children:"Your trusted partner in real estate transactions across New York"})]}),v.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center mb-16",children:[v.jsx(X.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},children:v.jsx("img",{alt:"Professional team in a corporate meeting discussing escrow services",class:"rounded-2xl shadow-xl w-full",src:"https://images.unsplash.com/photo-1573165231977-3f0e27806045"})}),v.jsxs(X.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:"space-y-6",children:[v.jsx("h3",{className:"text-3xl font-bold text-slate-900",children:"Protecting Your Investment Every Step of the Way"}),v.jsx("p",{className:"text-lg text-slate-600 leading-relaxed",children:"Since 2010, SafeGuard NY LLC has been providing comprehensive escrow and title services throughout New York. Our experienced team understands the complexities of real estate transactions and works diligently to ensure every closing is smooth, secure, and stress-free."}),v.jsx("p",{className:"text-lg text-slate-600 leading-relaxed",children:"We combine cutting-edge technology with personalized service to deliver exceptional results. Our commitment to transparency, accuracy, and client satisfaction has made us a trusted name in the industry."}),v.jsx("div",{className:"bg-blue-50 border-l-4 border-blue-600 p-6 rounded-r-lg",children:v.jsx("p",{className:"text-slate-700 italic",children:'"Our mission is to provide peace of mind through meticulous attention to detail, unwavering integrity, and exceptional customer service."'})})]})]}),v.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8",children:e.map((t,n)=>v.jsxs(X.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.1,duration:.5},className:"text-center",children:[v.jsx("div",{className:"bg-gradient-to-br from-blue-600 to-blue-800 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4",children:v.jsx(t.icon,{className:"w-8 h-8 text-white"})}),v.jsx("p",{className:"text-3xl font-bold text-slate-900 mb-2",children:t.value}),v.jsx("p",{className:"text-slate-600",children:t.label})]},n))})]})})},zC=()=>{const e=[{icon:GT,title:"Escrow Services",description:"Secure handling of funds and documents throughout your real estate transaction. We ensure all conditions are met before releasing funds.",features:["Secure fund management","Document verification","Compliance assurance"]},{icon:eC,title:"Title Search & Examination",description:"Comprehensive title searches to identify any liens, encumbrances, or defects that could affect property ownership.",features:["Complete title history","Lien identification","Ownership verification"]},{icon:Es,title:"Title Insurance",description:"Protection against financial loss from defects in title to real property. We work with leading underwriters to secure your investment.",features:["Owner's policies","Lender's policies","Extended coverage options"]},{icon:QT,title:"Residential Closings",description:"Expert handling of residential real estate closings with attention to every detail for a smooth transaction.",features:["Purchase transactions","Refinancing","FSBO assistance"]},{icon:WT,title:"Commercial Closings",description:"Specialized services for complex commercial real estate transactions with experienced professionals.",features:["Multi-party transactions","Complex financing","1031 exchanges"]},{icon:YT,title:"International Escrow & Financial Services",description:"Expertly managing international property transactions and cross-border financial accounts, ensuring global banking compliance and seamless coordination.",features:["International property transactions","Cross-border account management","Global banking compliance","Coordination with international attorneys & fiduciaries"]}];return v.jsx("section",{id:"services",className:"py-20 bg-gradient-to-br from-slate-50 to-blue-50",children:v.jsxs("div",{className:"container mx-auto px-4",children:[v.jsxs(X.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[v.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-slate-900 mb-4",children:"Our Services"}),v.jsx("p",{className:"text-xl text-slate-600 max-w-3xl mx-auto",children:"Comprehensive escrow and title solutions tailored to your needs"})]}),v.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((t,n)=>v.jsxs(X.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.1,duration:.5},whileHover:{y:-8,transition:{duration:.2}},className:"bg-white rounded-xl shadow-lg p-8 hover:shadow-2xl transition-all duration-300 flex flex-col",children:[v.jsx("div",{className:"bg-gradient-to-br from-blue-600 to-blue-800 w-16 h-16 rounded-lg flex items-center justify-center mb-6",children:v.jsx(t.icon,{className:"w-8 h-8 text-white"})}),v.jsx("h3",{className:"text-2xl font-bold text-slate-900 mb-4",children:t.title}),v.jsx("p",{className:"text-slate-600 mb-6 leading-relaxed flex-grow",children:t.description}),v.jsx("ul",{className:"space-y-3",children:t.features.map((r,o)=>v.jsxs("li",{className:"flex items-start space-x-2",children:[v.jsx(kl,{className:"w-5 h-5 text-green-600 flex-shrink-0 mt-0.5"}),v.jsx("span",{className:"text-slate-700",children:r})]},o))})]},n))})]})})},BC=()=>{const e=[{name:"Jim Robinson",role:"Director",bio:"With over 20 years of leadership in real estate and finance, Jim steers the strategic vision of SafeGuard NY LLC, ensuring operational excellence and client satisfaction.",image:v.jsx("img",{alt:"Jim Robinson, Director",src:"https://horizons-cdn.hostinger.com/e0aca99d-781a-4dc1-a799-260bb03b9ce1/istockphoto-1183038831-612x612-q1oWr.jpg"})},{name:"Lilian Rivers",role:"Finance",bio:"Lilian brings precision and expertise to our financial operations, managing complex escrow accounts with the highest standards of security and regulatory compliance.",image:v.jsx("img",{alt:"Lilian Rivers, Finance",src:"https://horizons-cdn.hostinger.com/e0aca99d-781a-4dc1-a799-260bb03b9ce1/istockphoto-1129162125-612x612-9B2B0.jpg"})},{name:"Bill Stevens, Esq.",role:"Legal Counsel",bio:"As our lead counsel, Bill provides invaluable oversight on all legal matters, ensuring every transaction adheres to strict regulatory frameworks and protects our clients' interests.",image:v.jsx("img",{alt:"Bill Stevens Esq, Legal",src:"https://horizons-cdn.hostinger.com/e0aca99d-781a-4dc1-a799-260bb03b9ce1/istockphoto-1454131266-612x612-72fVT.jpg"})},{name:"Harold Williams, CPA",role:"Head Title Officer",bio:"A veteran with 25 years of experience, Harold leads our title department, leveraging his deep accounting and title knowledge to resolve complex ownership issues.",image:v.jsx("img",{alt:"Harold Williams CPA, Head Title Officer",src:"https://horizons-cdn.hostinger.com/e0aca99d-781a-4dc1-a799-260bb03b9ce1/istockphoto-1346204988-612x612-DYgct.jpg"})},{name:"Randy Torres, CPA",role:"Title Officer",bio:"Randy specializes in commercial title examinations, bringing a sharp eye for detail and a proactive approach to resolving potential title defects before they become issues.",image:v.jsx("img",{alt:"Randy Torres CPA, Title Officer",src:"https://horizons-cdn.hostinger.com/e0aca99d-781a-4dc1-a799-260bb03b9ce1/istockphoto-1467553187-612x612-vdoHy.jpg"})},{name:"Adam Stafford, CPA",role:"Title Officer",bio:"Adam focuses on residential transactions, ensuring quick and accurate title clearance to facilitate smooth and stress-free closings for homebuyers and sellers.",image:v.jsx("img",{alt:"Adam Stafford CPA, Title Officer",src:"https://images.unsplash.com/photo-1600878459138-e1123b37cb30"})},{name:"Nancy Harris, CPA",role:"Title Officer",bio:"Nancy combines accounting expertise with title knowledge to manage intricate closing statements and financial reconciliations for our most complex clients.",image:v.jsx("img",{alt:"Nancy Harris CPA, Title Officer",src:"https://horizons-cdn.hostinger.com/e0aca99d-781a-4dc1-a799-260bb03b9ce1/istockphoto-1092806334-612x612-DTTbb.jpg"})}];return v.jsx("section",{id:"team",className:"py-20 bg-slate-50",children:v.jsxs("div",{className:"container mx-auto px-4",children:[v.jsxs(X.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[v.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-slate-900 mb-4",children:"Meet Our Team"}),v.jsx("p",{className:"text-xl text-slate-600 max-w-3xl mx-auto",children:"Experienced professionals dedicated to protecting your real estate investments"})]}),v.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8",children:e.map((t,n)=>v.jsxs(X.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.1,duration:.5},className:"bg-white rounded-xl shadow-lg overflow-hidden hover:shadow-xl transition-shadow duration-300 flex flex-col",children:[v.jsxs("div",{className:"h-64 overflow-hidden relative group",children:[t.image,v.jsx("div",{className:"absolute inset-0 bg-blue-900/0 group-hover:bg-blue-900/20 transition-colors duration-300"})]}),v.jsxs("div",{className:"p-6 flex-1 flex flex-col",children:[v.jsxs("div",{className:"mb-4",children:[v.jsx("h3",{className:"text-xl font-bold text-slate-900",children:t.name}),v.jsx("p",{className:"text-blue-600 font-medium",children:t.role})]}),v.jsx("p",{className:"text-slate-600 text-sm leading-relaxed mb-6 flex-1",children:t.bio}),v.jsxs("div",{className:"flex space-x-3 pt-4 border-t border-slate-100 mt-auto",children:[v.jsx("a",{href:"#",className:"p-2 bg-slate-100 rounded-full text-slate-600 hover:bg-blue-600 hover:text-white transition-colors duration-200","aria-label":`LinkedIn profile of ${t.name}`,children:v.jsx(yg,{className:"w-4 h-4"})}),v.jsx("a",{href:"#",className:"p-2 bg-slate-100 rounded-full text-slate-600 hover:bg-blue-600 hover:text-white transition-colors duration-200","aria-label":`Email ${t.name}`,children:v.jsx(xg,{className:"w-4 h-4"})})]})]})]},n))})]})})},UC=()=>{const e=[{icon:Es,title:"Licensed & Insured",description:"Fully licensed and insured to protect your interests throughout every transaction."},{icon:vg,title:"Fast & Efficient",description:"Streamlined processes and cutting-edge technology ensure quick turnaround times."},{icon:wg,title:"Experienced Team",description:"Our professionals bring decades of combined experience in title and escrow services."},{icon:gg,title:"Industry Recognition",description:"Award-winning service recognized by industry leaders and satisfied clients."},{icon:qT,title:"Secure Transactions",description:"Bank-level security and compliance with all regulatory requirements."},{icon:KT,title:"24/7 Support",description:"Dedicated support team available around the clock to answer your questions."}];return v.jsx("section",{id:"why-choose-us",className:"py-20 bg-white",children:v.jsxs("div",{className:"container mx-auto px-4",children:[v.jsxs(X.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[v.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-slate-900 mb-4",children:"Why Choose SafeGuard NY"}),v.jsx("p",{className:"text-xl text-slate-600 max-w-3xl mx-auto",children:"Experience the difference of working with a trusted partner"})]}),v.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16",children:e.map((t,n)=>v.jsxs(X.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:n*.1,duration:.5},className:"text-center p-6",children:[v.jsx("div",{className:"bg-blue-100 w-20 h-20 rounded-full flex items-center justify-center mx-auto mb-6",children:v.jsx(t.icon,{className:"w-10 h-10 text-blue-600"})}),v.jsx("h3",{className:"text-xl font-bold text-slate-900 mb-3",children:t.title}),v.jsx("p",{className:"text-slate-600 leading-relaxed",children:t.description})]},n))}),v.jsxs(X.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"bg-gradient-to-br from-blue-600 to-blue-800 rounded-2xl p-12 text-center text-white",children:[v.jsx("h3",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Ready to Get Started?"}),v.jsx("p",{className:"text-xl mb-8 text-blue-100",children:"Join thousands of satisfied clients who trust SafeGuard NY for their real estate transactions"}),v.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[v.jsx(X.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>{const t=document.getElementById("contact");t&&t.scrollIntoView({behavior:"smooth"})},className:"bg-white text-blue-600 px-8 py-4 rounded-lg font-semibold text-lg hover:bg-blue-50 transition-colors duration-200",children:"Contact Us Today"}),v.jsx(X.a,{whileHover:{scale:1.05},whileTap:{scale:.95},href:"tel:+16465688237",className:"bg-blue-700 text-white px-8 py-4 rounded-lg font-semibold text-lg hover:bg-blue-800 transition-colors duration-200",children:"Call (646) 568-8237"})]})]})]})})},HC=1;let ha=0;function $C(){return ha=(ha+1)%Number.MAX_VALUE,ha.toString()}const Ae={state:{toasts:[]},listeners:[],getState:()=>Ae.state,setState:e=>{typeof e=="function"?Ae.state=e(Ae.state):Ae.state={...Ae.state,...e},Ae.listeners.forEach(t=>t(Ae.state))},subscribe:e=>(Ae.listeners.push(e),()=>{Ae.listeners=Ae.listeners.filter(t=>t!==e)})},WC=({...e})=>{const t=$C(),n=o=>Ae.setState(i=>({...i,toasts:i.toasts.map(s=>s.id===t?{...s,...o}:s)})),r=()=>Ae.setState(o=>({...o,toasts:o.toasts.filter(i=>i.id!==t)}));return Ae.setState(o=>({...o,toasts:[{...e,id:t,dismiss:r},...o.toasts].slice(0,HC)})),{id:t,dismiss:r,update:n}};function Rg(){const[e,t]=T.useState(Ae.getState());return T.useEffect(()=>Ae.subscribe(r=>{t(r)}),[]),T.useEffect(()=>{const n=[];return e.toasts.forEach(r=>{if(r.duration===1/0)return;const o=setTimeout(()=>{r.dismiss()},r.duration||5e3);n.push(o)}),()=>{n.forEach(r=>clearTimeout(r))}},[e.toasts]),{toast:WC,toasts:e.toasts}}const GC=()=>{const{toast:e}=Rg(),[t,n]=T.useState({name:"",email:"",phone:"",subject:"",message:""}),r=s=>{s.preventDefault(),e({title:"Message Sent!",description:"Thank you for contacting us. We'll get back to you within 24 hours."}),n({name:"",email:"",phone:"",subject:"",message:""})},o=s=>{n({...t,[s.target.name]:s.target.value})},i=[{icon:xf,title:"Main Phone",content:"646-568-8237",link:"tel:+16465688237"},{icon:xf,title:"Secondary Phone",content:"917-725-3624",link:"tel:+19177253624"},{icon:xg,title:"Email",content:"contact@safeguardnyllc.com",link:"mailto:contact@safeguardnyllc.com"},{icon:ZT,title:"Address",content:"28 Liberty St., New York, NY 10005",link:"https://www.google.com/maps/search/?api=1&query=28+Liberty+St,+New+York,+NY+10005"},{icon:vg,title:"Business Hours",content:"Mon-Fri: 9AM-6PM EST",link:null}];return v.jsx("section",{id:"contact",className:"py-20 bg-gradient-to-br from-slate-50 to-blue-50",children:v.jsxs("div",{className:"container mx-auto px-4",children:[v.jsxs(X.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[v.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-slate-900 mb-4",children:"Get In Touch"}),v.jsx("p",{className:"text-xl text-slate-600 max-w-3xl mx-auto",children:"Have questions? We're here to help. Contact us today for a consultation."})]}),v.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[v.jsx(X.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},children:v.jsxs("div",{className:"bg-white rounded-2xl shadow-xl p-8 mb-8",children:[v.jsx("h3",{className:"text-2xl font-bold text-slate-900 mb-6",children:"Send Us a Message"}),v.jsxs("form",{onSubmit:r,className:"space-y-6",children:[v.jsxs("div",{children:[v.jsx("label",{htmlFor:"name",className:"block text-sm font-semibold text-slate-700 mb-2",children:"Full Name *"}),v.jsx("input",{type:"text",id:"name",name:"name",value:t.name,onChange:o,required:!0,className:"w-full px-4 py-3 border border-slate-300 rounded-lg focus:ring-2 focus:ring-blue-600 focus:border-transparent transition-all duration-200",placeholder:"John Doe"})]}),v.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[v.jsxs("div",{children:[v.jsx("label",{htmlFor:"email",className:"block text-sm font-semibold text-slate-700 mb-2",children:"Email *"}),v.jsx("input",{type:"email",id:"email",name:"email",value:t.email,onChange:o,required:!0,className:"w-full px-4 py-3 border border-slate-300 rounded-lg focus:ring-2 focus:ring-blue-600 focus:border-transparent transition-all duration-200",placeholder:"john@example.com"})]}),v.jsxs("div",{children:[v.jsx("label",{htmlFor:"phone",className:"block text-sm font-semibold text-slate-700 mb-2",children:"Phone"}),v.jsx("input",{type:"tel",id:"phone",name:"phone",value:t.phone,onChange:o,className:"w-full px-4 py-3 border border-slate-300 rounded-lg focus:ring-2 focus:ring-blue-600 focus:border-transparent transition-all duration-200",placeholder:"e.g., 646-568-8237"})]})]}),v.jsxs("div",{children:[v.jsx("label",{htmlFor:"subject",className:"block text-sm font-semibold text-slate-700 mb-2",children:"Subject *"}),v.jsx("input",{type:"text",id:"subject",name:"subject",value:t.subject,onChange:o,required:!0,className:"w-full px-4 py-3 border border-slate-300 rounded-lg focus:ring-2 focus:ring-blue-600 focus:border-transparent transition-all duration-200",placeholder:"How can we help you?"})]}),v.jsxs("div",{children:[v.jsx("label",{htmlFor:"message",className:"block text-sm font-semibold text-slate-700 mb-2",children:"Message *"}),v.jsx("textarea",{id:"message",name:"message",value:t.message,onChange:o,required:!0,rows:"5",className:"w-full px-4 py-3 border border-slate-300 rounded-lg focus:ring-2 focus:ring-blue-600 focus:border-transparent transition-all duration-200 resize-none",placeholder:"Tell us about your needs..."})]}),v.jsxs(wr,{type:"submit",className:"w-full bg-blue-600 hover:bg-blue-700 text-white text-lg py-6",children:[v.jsx(tC,{className:"w-5 h-5 mr-2"}),"Send Message"]})]})]})}),v.jsxs(X.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:"space-y-6",children:[i.map((s,a)=>v.jsx(X.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:a*.1,duration:.5},className:"bg-white rounded-xl shadow-lg p-6 hover:shadow-xl transition-shadow duration-300",children:v.jsxs("div",{className:"flex items-start space-x-4",children:[v.jsx("div",{className:"bg-blue-100 p-3 rounded-lg",children:v.jsx(s.icon,{className:"w-6 h-6 text-blue-600"})}),v.jsxs("div",{className:"flex-1",children:[v.jsx("h4",{className:"text-lg font-bold text-slate-900 mb-2",children:s.title}),s.link?v.jsx("a",{href:s.link,target:"_blank",rel:"noopener noreferrer",className:"text-slate-600 hover:text-blue-600 transition-colors duration-200",children:s.content}):v.jsx("p",{className:"text-slate-600",children:s.content})]})]})},a)),v.jsx(X.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.4,duration:.5},className:"bg-white rounded-xl shadow-lg overflow-hidden",children:v.jsx("img",{alt:"The 28 Liberty Street building in New York City",class:"w-full h-64 object-cover",src:"https://horizons-cdn.hostinger.com/e0aca99d-781a-4dc1-a799-260bb03b9ce1/bouubiztcorgxudfpejv-nXIRx.webp"})})]})]})]})})},YC=()=>{const e=new Date().getFullYear(),t={Services:["Escrow Services","Title Search","Title Insurance","Residential Closings","Commercial Closings"],Company:["About Us","Our Team","Careers","News & Updates","Contact"],Resources:["FAQ","Blog","Client Portal","Forms & Documents","Privacy Policy"]},n=[{icon:$T,href:"#",label:"Facebook"},{icon:rC,href:"#",label:"Twitter"},{icon:yg,href:"#",label:"LinkedIn"},{icon:XT,href:"#",label:"Instagram"}];return v.jsx("footer",{className:"bg-slate-900 text-white pt-16 pb-8",children:v.jsxs("div",{className:"container mx-auto px-4",children:[v.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-5 gap-8 mb-12",children:[v.jsxs("div",{className:"lg:col-span-2",children:[v.jsx("div",{className:"flex items-center mb-6",children:v.jsx("img",{src:"https://horizons-cdn.hostinger.com/e0aca99d-781a-4dc1-a799-260bb03b9ce1/logo-2-kqpHe.png",alt:"SafeGuard NY LLC Logo",className:"h-12 w-auto"})}),v.jsx("p",{className:"text-slate-400 mb-6 leading-relaxed",children:"Protecting your real estate investments with professional escrow and title services throughout New York since 2010."}),v.jsxs("div",{className:"space-y-2 text-sm text-slate-400 mb-4",children:[v.jsx("p",{children:"Main: 646-568-8237"}),v.jsxs("p",{children:["Email: ",v.jsx("a",{href:"mailto:contact@safeguardnyllc.com",className:"hover:text-white",children:"contact@safeguardnyllc.com"})]}),v.jsxs("p",{children:["Website: ",v.jsx("a",{href:"https://www.safeguardnyllc.com",target:"_blank",rel:"noopener noreferrer",className:"hover:text-white",children:"www.safeguardnyllc.com"})]})]}),v.jsx("div",{className:"flex space-x-4",children:n.map((r,o)=>v.jsx("a",{href:r.href,"aria-label":r.label,className:"bg-slate-800 p-3 rounded-lg hover:bg-blue-600 transition-colors duration-200",children:v.jsx(r.icon,{className:"w-5 h-5"})},o))})]}),Object.entries(t).map(([r,o])=>v.jsxs("div",{children:[v.jsx("span",{className:"text-lg font-bold mb-4 block",children:r}),v.jsx("ul",{className:"space-y-3",children:o.map((i,s)=>v.jsx("li",{children:v.jsx("a",{href:"#",className:"text-slate-400 hover:text-white transition-colors duration-200",children:i})},s))})]},r))]}),v.jsx("div",{className:"border-t border-slate-800 pt-8",children:v.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center space-y-4 md:space-y-0",children:[v.jsxs("p",{className:"text-slate-400 text-sm",children:["© ",e," SafeGuard NY LLC. All rights reserved."]}),v.jsxs("div",{className:"flex space-x-6 text-sm",children:[v.jsx("a",{href:"#",className:"text-slate-400 hover:text-white transition-colors duration-200",children:"Terms of Service"}),v.jsx("a",{href:"#",className:"text-slate-400 hover:text-white transition-colors duration-200",children:"Privacy Policy"}),v.jsx("a",{href:"#",className:"text-slate-400 hover:text-white transition-colors duration-200",children:"Cookie Policy"})]})]})})]})})};function $e(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Lg(e,t=[]){let n=[];function r(i,s){const a=T.createContext(s),l=n.length;n=[...n,s];const u=d=>{var g;const{scope:f,children:h,...x}=d,y=((g=f==null?void 0:f[e])==null?void 0:g[l])||a,S=T.useMemo(()=>x,Object.values(x));return v.jsx(y.Provider,{value:S,children:h})};u.displayName=i+"Provider";function c(d,f){var y;const h=((y=f==null?void 0:f[e])==null?void 0:y[l])||a,x=T.useContext(h);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>T.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return T.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,KC(o,...t)]}function KC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return T.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function QC(e){const t=e+"CollectionProvider",[n,r]=Lg(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:x,children:y}=h,S=fe.useRef(null),g=fe.useRef(new Map).current;return v.jsx(o,{scope:x,itemMap:g,collectionRef:S,children:y})};s.displayName=t;const a=e+"CollectionSlot",l=fe.forwardRef((h,x)=>{const{scope:y,children:S}=h,g=i(a,y),p=Ln(x,g.collectionRef);return v.jsx(Eo,{ref:p,children:S})});l.displayName=a;const u=e+"CollectionItemSlot",c="data-radix-collection-item",d=fe.forwardRef((h,x)=>{const{scope:y,children:S,...g}=h,p=fe.useRef(null),m=Ln(x,p),w=i(u,y);return fe.useEffect(()=>(w.itemMap.set(p,{ref:p,...g}),()=>void w.itemMap.delete(p))),v.jsx(Eo,{[c]:"",ref:m,children:S})});d.displayName=u;function f(h){const x=i(e+"CollectionConsumer",h);return fe.useCallback(()=>{const S=x.collectionRef.current;if(!S)return[];const g=Array.from(S.querySelectorAll(`[${c}]`));return Array.from(x.itemMap.values()).sort((w,C)=>g.indexOf(w.ref.current)-g.indexOf(C.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},f,r]}var XC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],wt=XC.reduce((e,t)=>{const n=T.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?Eo:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Mg(e,t){e&&vs.flushSync(()=>e.dispatchEvent(t))}function Dt(e){const t=T.useRef(e);return T.useEffect(()=>{t.current=e}),T.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function qC(e,t=globalThis==null?void 0:globalThis.document){const n=Dt(e);T.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ZC="DismissableLayer",jl="dismissableLayer.update",JC="dismissableLayer.pointerDownOutside",eP="dismissableLayer.focusOutside",kf,Og=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dg=T.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=T.useContext(Og),[c,d]=T.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=T.useState({}),x=Ln(t,P=>d(P)),y=Array.from(u.layers),[S]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(S),p=c?y.indexOf(c):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,w=p>=g,C=nP(P=>{const E=P.target,L=[...u.branches].some(M=>M.contains(E));!w||L||(o==null||o(P),s==null||s(P),P.defaultPrevented||a==null||a())},f),k=rP(P=>{const E=P.target;[...u.branches].some(M=>M.contains(E))||(i==null||i(P),s==null||s(P),P.defaultPrevented||a==null||a())},f);return qC(P=>{p===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},f),T.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(kf=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),bf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=kf)}},[c,f,n,u]),T.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),bf())},[c,u]),T.useEffect(()=>{const P=()=>h({});return document.addEventListener(jl,P),()=>document.removeEventListener(jl,P)},[]),v.jsx(wt.div,{...l,ref:x,style:{pointerEvents:m?w?"auto":"none":void 0,...e.style},onFocusCapture:$e(e.onFocusCapture,k.onFocusCapture),onBlurCapture:$e(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:$e(e.onPointerDownCapture,C.onPointerDownCapture)})});Dg.displayName=ZC;var tP="DismissableLayerBranch",Vg=T.forwardRef((e,t)=>{const n=T.useContext(Og),r=T.useRef(null),o=Ln(t,r);return T.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),v.jsx(wt.div,{...e,ref:o})});Vg.displayName=tP;function nP(e,t=globalThis==null?void 0:globalThis.document){const n=Dt(e),r=T.useRef(!1),o=T.useRef(()=>{});return T.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Ig(JC,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function rP(e,t=globalThis==null?void 0:globalThis.document){const n=Dt(e),r=T.useRef(!1);return T.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ig(eP,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function bf(){const e=new CustomEvent(jl);document.dispatchEvent(e)}function Ig(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Mg(o,i):o.dispatchEvent(i)}var oP=Dg,iP=Vg,es=globalThis!=null&&globalThis.document?T.useLayoutEffect:()=>{},sP="Portal",_g=T.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=T.useState(!1);es(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?V0.createPortal(v.jsx(wt.div,{...r,ref:t}),s):null});_g.displayName=sP;function aP(e,t){return T.useReducer((n,r)=>t[n][r]??n,e)}var Fg=e=>{const{present:t,children:n}=e,r=lP(t),o=typeof n=="function"?n({present:r.isPresent}):T.Children.only(n),i=Ln(r.ref,uP(o));return typeof n=="function"||r.isPresent?T.cloneElement(o,{ref:i}):null};Fg.displayName="Presence";function lP(e){const[t,n]=T.useState(),r=T.useRef({}),o=T.useRef(e),i=T.useRef("none"),s=e?"mounted":"unmounted",[a,l]=aP(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const u=oi(r.current);i.current=a==="mounted"?u:"none"},[a]),es(()=>{const u=r.current,c=o.current;if(c!==e){const f=i.current,h=oi(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),es(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=h=>{const y=oi(r.current).includes(h.animationName);if(h.target===t&&y&&(l("ANIMATION_END"),!o.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},f=h=>{h.target===t&&(i.current=oi(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:T.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function oi(e){return(e==null?void 0:e.animationName)||"none"}function uP(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function cP({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=dP({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=Dt(n),l=T.useCallback(u=>{if(i){const d=typeof u=="function"?u(e):u;d!==e&&a(d)}else o(u)},[i,e,o,a]);return[s,l]}function dP({defaultProp:e,onChange:t}){const n=T.useState(e),[r]=n,o=T.useRef(r),i=Dt(t);return T.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var fP="VisuallyHidden",Xu=T.forwardRef((e,t)=>v.jsx(wt.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Xu.displayName=fP;var qu="ToastProvider",[Zu,pP,hP]=QC("Toast"),[zg,_P]=Lg("Toast",[hP]),[mP,ks]=zg(qu),Bg=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=T.useState(null),[u,c]=T.useState(0),d=T.useRef(!1),f=T.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${qu}\`. Expected non-empty \`string\`.`),v.jsx(Zu.Provider,{scope:t,children:v.jsx(mP,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:T.useCallback(()=>c(h=>h+1),[]),onToastRemove:T.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:s})})};Bg.displayName=qu;var Ug="ToastViewport",gP=["F8"],Rl="toast.viewportPause",Ll="toast.viewportResume",Hg=T.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=gP,label:o="Notifications ({hotkey})",...i}=e,s=ks(Ug,n),a=pP(n),l=T.useRef(null),u=T.useRef(null),c=T.useRef(null),d=T.useRef(null),f=Ln(t,d,s.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=s.toastCount>0;T.useEffect(()=>{const S=g=>{var m;r.length!==0&&r.every(w=>g[w]||g.code===w)&&((m=d.current)==null||m.focus())};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[r]),T.useEffect(()=>{const S=l.current,g=d.current;if(x&&S&&g){const p=()=>{if(!s.isClosePausedRef.current){const k=new CustomEvent(Rl);g.dispatchEvent(k),s.isClosePausedRef.current=!0}},m=()=>{if(s.isClosePausedRef.current){const k=new CustomEvent(Ll);g.dispatchEvent(k),s.isClosePausedRef.current=!1}},w=k=>{!S.contains(k.relatedTarget)&&m()},C=()=>{S.contains(document.activeElement)||m()};return S.addEventListener("focusin",p),S.addEventListener("focusout",w),S.addEventListener("pointermove",p),S.addEventListener("pointerleave",C),window.addEventListener("blur",p),window.addEventListener("focus",m),()=>{S.removeEventListener("focusin",p),S.removeEventListener("focusout",w),S.removeEventListener("pointermove",p),S.removeEventListener("pointerleave",C),window.removeEventListener("blur",p),window.removeEventListener("focus",m)}}},[x,s.isClosePausedRef]);const y=T.useCallback(({tabbingDirection:S})=>{const p=a().map(m=>{const w=m.ref.current,C=[w,...AP(w)];return S==="forwards"?C:C.reverse()});return(S==="forwards"?p.reverse():p).flat()},[a]);return T.useEffect(()=>{const S=d.current;if(S){const g=p=>{var C,k,P;const m=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!m){const E=document.activeElement,L=p.shiftKey;if(p.target===S&&L){(C=u.current)==null||C.focus();return}const D=y({tabbingDirection:L?"backwards":"forwards"}),re=D.findIndex(j=>j===E);ma(D.slice(re+1))?p.preventDefault():L?(k=u.current)==null||k.focus():(P=c.current)==null||P.focus()}};return S.addEventListener("keydown",g),()=>S.removeEventListener("keydown",g)}},[a,y]),v.jsxs(iP,{ref:l,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&v.jsx(Ml,{ref:u,onFocusFromOutsideViewport:()=>{const S=y({tabbingDirection:"forwards"});ma(S)}}),v.jsx(Zu.Slot,{scope:n,children:v.jsx(wt.ol,{tabIndex:-1,...i,ref:f})}),x&&v.jsx(Ml,{ref:c,onFocusFromOutsideViewport:()=>{const S=y({tabbingDirection:"backwards"});ma(S)}})]})});Hg.displayName=Ug;var $g="ToastFocusProxy",Ml=T.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=ks($g,n);return v.jsx(Xu,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});Ml.displayName=$g;var bs="Toast",vP="toast.swipeStart",yP="toast.swipeMove",xP="toast.swipeCancel",wP="toast.swipeEnd",Wg=T.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a=!0,l]=cP({prop:r,defaultProp:o,onChange:i});return v.jsx(Fg,{present:n||a,children:v.jsx(CP,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:Dt(e.onPause),onResume:Dt(e.onResume),onSwipeStart:$e(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:$e(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:$e(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:$e(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});Wg.displayName=bs;var[SP,TP]=zg(bs,{onClose(){}}),CP=T.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:h,...x}=e,y=ks(bs,n),[S,g]=T.useState(null),p=Ln(t,j=>g(j)),m=T.useRef(null),w=T.useRef(null),C=o||y.duration,k=T.useRef(0),P=T.useRef(C),E=T.useRef(0),{onToastAdd:L,onToastRemove:M}=y,$=Dt(()=>{var J;(S==null?void 0:S.contains(document.activeElement))&&((J=y.viewport)==null||J.focus()),s()}),D=T.useCallback(j=>{!j||j===1/0||(window.clearTimeout(E.current),k.current=new Date().getTime(),E.current=window.setTimeout($,j))},[$]);T.useEffect(()=>{const j=y.viewport;if(j){const J=()=>{D(P.current),u==null||u()},B=()=>{const de=new Date().getTime()-k.current;P.current=P.current-de,window.clearTimeout(E.current),l==null||l()};return j.addEventListener(Rl,B),j.addEventListener(Ll,J),()=>{j.removeEventListener(Rl,B),j.removeEventListener(Ll,J)}}},[y.viewport,C,l,u,D]),T.useEffect(()=>{i&&!y.isClosePausedRef.current&&D(C)},[i,C,y.isClosePausedRef,D]),T.useEffect(()=>(L(),()=>M()),[L,M]);const re=T.useMemo(()=>S?Zg(S):null,[S]);return y.viewport?v.jsxs(v.Fragment,{children:[re&&v.jsx(PP,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:re}),v.jsx(SP,{scope:n,onClose:$,children:vs.createPortal(v.jsx(Zu.ItemSlot,{scope:n,children:v.jsx(oP,{asChild:!0,onEscapeKeyDown:$e(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||$(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:v.jsx(wt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...x,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:$e(e.onKeyDown,j=>{j.key==="Escape"&&(a==null||a(j.nativeEvent),j.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:$e(e.onPointerDown,j=>{j.button===0&&(m.current={x:j.clientX,y:j.clientY})}),onPointerMove:$e(e.onPointerMove,j=>{if(!m.current)return;const J=j.clientX-m.current.x,B=j.clientY-m.current.y,de=!!w.current,N=["left","right"].includes(y.swipeDirection),R=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,I=N?R(0,J):0,O=N?0:R(0,B),U=j.pointerType==="touch"?10:2,G={x:I,y:O},Be={originalEvent:j,delta:G};de?(w.current=G,ii(yP,d,Be,{discrete:!1})):Nf(G,y.swipeDirection,U)?(w.current=G,ii(vP,c,Be,{discrete:!1}),j.target.setPointerCapture(j.pointerId)):(Math.abs(J)>U||Math.abs(B)>U)&&(m.current=null)}),onPointerUp:$e(e.onPointerUp,j=>{const J=w.current,B=j.target;if(B.hasPointerCapture(j.pointerId)&&B.releasePointerCapture(j.pointerId),w.current=null,m.current=null,J){const de=j.currentTarget,N={originalEvent:j,delta:J};Nf(J,y.swipeDirection,y.swipeThreshold)?ii(wP,h,N,{discrete:!0}):ii(xP,f,N,{discrete:!0}),de.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),PP=e=>{const{__scopeToast:t,children:n,...r}=e,o=ks(bs,t),[i,s]=T.useState(!1),[a,l]=T.useState(!1);return bP(()=>s(!0)),T.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:v.jsx(_g,{asChild:!0,children:v.jsx(Xu,{...r,children:i&&v.jsxs(v.Fragment,{children:[o.label," ",n]})})})},EP="ToastTitle",Gg=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(wt.div,{...r,ref:t})});Gg.displayName=EP;var kP="ToastDescription",Yg=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(wt.div,{...r,ref:t})});Yg.displayName=kP;var Kg="ToastAction",Qg=T.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?v.jsx(qg,{altText:n,asChild:!0,children:v.jsx(Ju,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Kg}\`. Expected non-empty \`string\`.`),null)});Qg.displayName=Kg;var Xg="ToastClose",Ju=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=TP(Xg,n);return v.jsx(qg,{asChild:!0,children:v.jsx(wt.button,{type:"button",...r,ref:t,onClick:$e(e.onClick,o.onClose)})})});Ju.displayName=Xg;var qg=T.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return v.jsx(wt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Zg(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),NP(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Zg(r))}}),t}function ii(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Mg(o,i):o.dispatchEvent(i)}var Nf=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function bP(e=()=>{}){const t=Dt(e);es(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function NP(e){return e.nodeType===e.ELEMENT_NODE}function AP(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ma(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var jP=Bg,Jg=Hg,ev=Wg,tv=Gg,nv=Yg,rv=Qg,ov=Ju;const RP=jP,iv=fe.forwardRef(({className:e,...t},n)=>v.jsx(Jg,{ref:n,className:_n("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));iv.displayName=Jg.displayName;const LP=jg("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background border",destructive:"group destructive border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),sv=fe.forwardRef(({className:e,variant:t,...n},r)=>v.jsx(ev,{ref:r,className:_n(LP({variant:t}),e),...n}));sv.displayName=ev.displayName;const MP=fe.forwardRef(({className:e,...t},n)=>v.jsx(rv,{ref:n,className:_n("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));MP.displayName=rv.displayName;const av=fe.forwardRef(({className:e,...t},n)=>v.jsx(ov,{ref:n,className:_n("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:v.jsx(Sg,{className:"h-4 w-4"})}));av.displayName=ov.displayName;const lv=fe.forwardRef(({className:e,...t},n)=>v.jsx(tv,{ref:n,className:_n("text-sm font-semibold",e),...t}));lv.displayName=tv.displayName;const uv=fe.forwardRef(({className:e,...t},n)=>v.jsx(nv,{ref:n,className:_n("text-sm opacity-90",e),...t}));uv.displayName=nv.displayName;function OP(){const{toasts:e}=Rg();return v.jsxs(RP,{children:[e.map(({id:t,title:n,description:r,action:o,...i})=>v.jsxs(sv,{...i,children:[v.jsxs("div",{className:"grid gap-1",children:[n&&v.jsx(lv,{children:n}),r&&v.jsx(uv,{children:r})]}),o,v.jsx(av,{})]},t)),v.jsx(iv,{})]})}function DP(){return v.jsxs(v.Fragment,{children:[v.jsxs(fl,{children:[v.jsx("title",{children:"SafeGuard NY LLC - Professional Escrow & Title Services"}),v.jsx("meta",{name:"description",content:"SafeGuard NY LLC provides comprehensive escrow and title services in New York. Trust our experienced team for secure, efficient real estate transactions."})]}),v.jsxs("div",{className:"min-h-screen bg-slate-50",children:[v.jsx(IC,{}),v.jsx(_C,{}),v.jsx(FC,{}),v.jsx(zC,{}),v.jsx(UC,{}),v.jsx(BC,{}),v.jsx(GC,{}),v.jsx(YC,{}),v.jsx(OP,{})]})]})}ga.createRoot(document.getElementById("root")).render(v.jsx(DP,{}));